@Override public DefaultNamedValue<ValueType> clone() { @SuppressWarnings("unchecked") DefaultNamedValue<ValueType> clone = (DefaultNamedValue<ValueType>) super.clone(); clone.setValue( ObjectUtil.cloneSmart( this.getValue() ) ); return clone; }
public boolean equals( final Pair<FirstType, SecondType> other) { return other != null && ObjectUtil.equalsSafe(this.getFirst(), other.getFirst()) && ObjectUtil.equalsSafe(this.getSecond(), other.getSecond()); }
@Override public AbstractTemporal clone() { AbstractTemporal clone = (AbstractTemporal) super.clone(); clone.setTime( ObjectUtil.cloneSmart( this.getTime() ) ); return clone; }
@Override public CompositeLocalGlobalTermWeighter clone() { final CompositeLocalGlobalTermWeighter clone = (CompositeLocalGlobalTermWeighter) super.clone(); clone.localWeighter = ObjectUtil.cloneSafe(this.localWeighter); clone.globalWeighter = ObjectUtil.cloneSmart(this.globalWeighter); clone.normalizer = ObjectUtil.cloneSafe(this.normalizer); return clone; }
@Override public DefaultKernelContainer<InputType> clone() { @SuppressWarnings("unchecked") final DefaultKernelContainer<InputType> result = (DefaultKernelContainer<InputType>) super.clone(); result.kernel = ObjectUtil.cloneSmart(this.kernel); return result; }
@Override public int hashCode() { int hash = 3; hash = 23 * hash + ObjectUtil.hashCodeSafe(this.getFirst()); hash = 23 * hash + ObjectUtil.hashCodeSafe(this.getSecond()); return hash; }
public boolean equals( final Pair<FirstType, SecondType> other) { return other != null && ObjectUtil.equalsSafe(this.getFirst(), other.getFirst()) && ObjectUtil.equalsSafe(this.getSecond(), other.getSecond()); }
@Override public AbstractTemporal clone() { AbstractTemporal clone = (AbstractTemporal) super.clone(); clone.setTime( ObjectUtil.cloneSmart( this.getTime() ) ); return clone; }
@Override public DefaultNamedValue<ValueType> clone() { @SuppressWarnings("unchecked") DefaultNamedValue<ValueType> clone = (DefaultNamedValue<ValueType>) super.clone(); clone.setValue( ObjectUtil.cloneSmart( this.getValue() ) ); return clone; }
@Override public DefaultDivergenceFunctionContainer<FirstType, SecondType> clone() { @SuppressWarnings("unchecked") final DefaultDivergenceFunctionContainer<FirstType, SecondType> result = (DefaultDivergenceFunctionContainer<FirstType, SecondType>) super.clone(); result.divergenceFunction = ObjectUtil.cloneSmart(this.divergenceFunction); return result; }
public boolean equals( final Pair<FirstType, SecondType> other) { return other != null && ObjectUtil.equalsSafe(this.getFirst(), other.getFirst()) && ObjectUtil.equalsSafe(this.getSecond(), other.getSecond()); }
@Override public AbstractTemporal clone() { AbstractTemporal clone = (AbstractTemporal) super.clone(); clone.setTime( ObjectUtil.cloneSmart( this.getTime() ) ); return clone; }
@Override public DefaultNamedValue<ValueType> clone() { @SuppressWarnings("unchecked") DefaultNamedValue<ValueType> clone = (DefaultNamedValue<ValueType>) super.clone(); clone.setValue( ObjectUtil.cloneSmart( this.getValue() ) ); return clone; }