/** * Creates a new {@code WeightedTargetEstimatePair} as a shallow copy of * the given other object. * * @param other * The other object to get the target, estimate, and weight from. */ public DefaultWeightedTargetEstimatePair( final DefaultWeightedTargetEstimatePair<? extends TargetType, ? extends EstimateType> other) { this(other.getTarget(), other.getEstimate(), other.getWeight()); }
/** * Creates a new {@code WeightedTargetEstimatePair} as a shallow copy of * the given other object. * * @param other * The other object to get the target, estimate, and weight from. */ public DefaultWeightedTargetEstimatePair( final DefaultWeightedTargetEstimatePair<? extends TargetType, ? extends EstimateType> other) { this(other.getTarget(), other.getEstimate(), other.getWeight()); }
/** * Creates a new {@code WeightedTargetEstimatePair} as a shallow copy of * the given other object. * * @param other * The other object to get the target, estimate, and weight from. */ public DefaultWeightedTargetEstimatePair( final DefaultWeightedTargetEstimatePair<? extends TargetType, ? extends EstimateType> other) { this(other.getTarget(), other.getEstimate(), other.getWeight()); }