/** * Returns a deep copy of the receiver; uses <code>clone()</code> and casts the result. * * @return a deep copy of the receiver. */ @SuppressWarnings("unchecked") // seemingly unavoidable. public AbstractObjectDoubleMap<T> copy() { return (AbstractObjectDoubleMap<T>) clone(); }
/** * Returns a deep copy of the receiver. * * @return a deep copy of the receiver. */ @Override @SuppressWarnings("unchecked") public Object clone() { OpenObjectDoubleHashMap copy = (OpenObjectDoubleHashMap) super.clone(); copy.table = copy.table.clone(); copy.values = copy.values.clone(); copy.state = copy.state.clone(); return copy; }
/** * Returns a deep copy of the receiver; uses <code>clone()</code> and casts the result. * * @return a deep copy of the receiver. */ @SuppressWarnings("unchecked") // seemingly unavoidable. public AbstractObjectDoubleMap<T> copy() { return (AbstractObjectDoubleMap<T>) clone(); }
/** * Returns a deep copy of the receiver; uses <code>clone()</code> and casts the result. * * @return a deep copy of the receiver. */ @SuppressWarnings("unchecked") // seemingly unavoidable. public AbstractObjectDoubleMap<T> copy() { return (AbstractObjectDoubleMap<T>) clone(); }
/** * Returns a deep copy of the receiver. * * @return a deep copy of the receiver. */ @Override @SuppressWarnings("unchecked") public Object clone() { OpenObjectDoubleHashMap copy = (OpenObjectDoubleHashMap) super.clone(); copy.table = copy.table.clone(); copy.values = copy.values.clone(); copy.state = copy.state.clone(); return copy; }
/** * Returns a deep copy of the receiver. * * @return a deep copy of the receiver. */ @Override @SuppressWarnings("unchecked") public Object clone() { OpenObjectDoubleHashMap copy = (OpenObjectDoubleHashMap) super.clone(); copy.table = copy.table.clone(); copy.values = copy.values.clone(); copy.state = copy.state.clone(); return copy; }