/** * Creates a shallow copy of the given DefaultNamedValue. * * @param other The other DefaultNamedValue to shallow copy. */ public DefaultNamedValue( final DefaultNamedValue<? extends ValueType> other) { this(other.getName(), other.getValue()); }
/** * Creates a shallow copy of the given DefaultNamedValue. * * @param other The other DefaultNamedValue to shallow copy. */ public DefaultNamedValue( final DefaultNamedValue<? extends ValueType> other) { this(other.getName(), other.getValue()); }
/** * Creates a shallow copy of the given DefaultNamedValue. * * @param other The other DefaultNamedValue to shallow copy. */ public DefaultNamedValue( final DefaultNamedValue<? extends ValueType> other) { this(other.getName(), other.getValue()); }
@Override public DefaultNamedValue<ValueType> clone() { @SuppressWarnings("unchecked") DefaultNamedValue<ValueType> clone = (DefaultNamedValue<ValueType>) super.clone(); clone.setValue( ObjectUtil.cloneSmart( this.getValue() ) ); 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 DefaultNamedValue<ValueType> clone() { @SuppressWarnings("unchecked") DefaultNamedValue<ValueType> clone = (DefaultNamedValue<ValueType>) super.clone(); clone.setValue( ObjectUtil.cloneSmart( this.getValue() ) ); return clone; }