/** * Copy constructor, creates a new {@code Max} identical * to the {@code original} * * @param original the {@code Max} instance to copy * @throws NullArgumentException if original is null */ public Max(Max original) throws NullArgumentException { copy(original, this); }
/** * {@inheritDoc} */ @Override public Max copy() { Max result = new Max(); // No try-catch or advertised exception because args are non-null copy(this, result); return result; }
dest.max = (Max) dest.maxImpl; } else { Max.copy(source.max, dest.max);
/** * Copy constructor, creates a new {@code Max} identical * to the {@code original} * * @param original the {@code Max} instance to copy * @throws NullArgumentException if original is null */ public Max(Max original) throws NullArgumentException { copy(original, this); }
/** * Copy constructor, creates a new {@code Max} identical * to the {@code original} * * @param original the {@code Max} instance to copy * @throws NullArgumentException if original is null */ public Max(Max original) throws NullArgumentException { copy(original, this); }
/** * {@inheritDoc} */ @Override public Max copy() { Max result = new Max(); // No try-catch or advertised exception because args are non-null copy(this, result); return result; }
/** * {@inheritDoc} */ @Override public Max copy() { Max result = new Max(); // No try-catch or advertised exception because args are non-null copy(this, result); return result; }
dest.max = (Max) dest.maxImpl; } else { Max.copy(source.max, dest.max);
dest.max = (Max) dest.maxImpl; } else { Max.copy(source.max, dest.max);