/** * Clones the underlying trove collection and returns the clone wrapped in a new * decorator instance. This is a shallow clone except where primitives are * concerned. * * @return a copy of the receiver */ @Override // GemStoneAddition public Object clone() { try { TIntDoubleHashMapDecorator copy = (TIntDoubleHashMapDecorator) super.clone(); copy._map = (TIntDoubleHashMap)_map.clone(); return copy; } catch (CloneNotSupportedException e) { // assert(false); throw new InternalError(); // we are cloneable, so this does not happen } }