/** * Returns a new {@code NumberFormat} with the same properties. */ @Override public Object clone() { return super.clone(); }
public Format getDataFormat() { return dataFormat == null ? null : (Format)dataFormat.clone(); }
/** * Returns a new instance of {@code MessageFormat} with the same pattern and * formats as this {@code MessageFormat}. * * @return a shallow copy of this {@code MessageFormat}. * @see java.lang.Cloneable */ @Override public Object clone() { MessageFormat clone = (MessageFormat) super.clone(); Format[] array = new Format[formats.length]; for (int i = formats.length; --i >= 0;) { if (formats[i] != null) { array[i] = (Format) formats[i].clone(); } } clone.formats = array; return clone; }
/** * Returns a new instance of {@code DateFormat} with the same properties. */ @Override public Object clone() { DateFormat clone = (DateFormat) super.clone(); clone.calendar = (Calendar) calendar.clone(); clone.numberFormat = (NumberFormat) numberFormat.clone(); return clone; }
/** * Returns a clone of this parser. In current implementation, this clone is <strong>not</strong> * for usage in concurrent thread. */ @Override public LineFormat clone() { final LineFormat copy = (LineFormat) super.clone(); copy.data = data.clone(); copy.limits = limits.clone(); return copy; } }
@Override public Format get() { return (Format) f.clone(); } }
@Override public Format get() { return (Format) f.clone(); } }
/** * Returns a new {@code NumberFormat} with the same properties. */ @Override public Object clone() { return super.clone(); }
/** * Returns a new {@code NumberFormat} with the same properties. */ @Override public Object clone() { return super.clone(); }
/** * Returns a new {@code NumberFormat} with the same properties. */ @Override public Object clone() { return super.clone(); }
/** * Returns a new {@code NumberFormat} with the same properties. */ @Override public Object clone() { return super.clone(); }
/** * Returns a clone of this parser. In current implementation, this * clone is <strong>not</strong> for usage in concurrent thread. */ //@Override public Object clone() { final LineFormat copy = (LineFormat) super.clone(); copy.data = (Object[]) data.clone(); copy.limits = (int[]) limits.clone(); return copy; } }
@SuppressWarnings({ "unchecked", "rawtypes" }) @Override public Object clone() { try { FormatBasedConverter copy = (FormatBasedConverter) super.clone(); copy.format = (Format) format.clone(); return copy; } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } }
/** * Returns a new instance of {@code DateFormat} with the same properties. */ @Override public Object clone() { DateFormat clone = (DateFormat) super.clone(); clone.calendar = (Calendar) calendar.clone(); clone.numberFormat = (NumberFormat) numberFormat.clone(); return clone; }
@SuppressWarnings("unchecked") FormatContext(final F format) { super(); ProgrammingError.throwIfNull(format); myFormat = (F) format.clone(); }
/** * Returns a new instance of {@code DateFormat} with the same properties. */ @Override public Object clone() { DateFormat clone = (DateFormat) super.clone(); clone.calendar = (Calendar) calendar.clone(); clone.numberFormat = (NumberFormat) numberFormat.clone(); return clone; }
public Object clone() { DateFormat other = (DateFormat) super.clone(); other.calendar = (Calendar) calendar.clone(); other.numberFormat = (NumberFormat) numberFormat.clone(); return other; }
@SuppressWarnings("unchecked") FormatContext(final F format) { super(); ProgrammingError.throwIfNull(format); myFormat = (F) format.clone(); }
/** * Overrides Cloneable */ public Object clone() { DateFormat other = (DateFormat) super.clone(); other.calendar = (Calendar) calendar.clone(); other.numberFormat = (NumberFormat) numberFormat.clone(); return other; }
/** * Returns a new instance of {@code DateFormat} with the same properties. */ @Override public Object clone() { DateFormat clone = (DateFormat) super.clone(); clone.calendar = (Calendar) calendar.clone(); clone.numberFormat = (NumberFormat) numberFormat.clone(); return clone; }