/** * 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 { TIntIntHashMapDecorator copy = (TIntIntHashMapDecorator) super.clone(); copy._map = (TIntIntHashMap) _map.clone(); return copy; } catch (CloneNotSupportedException e) { // assert(false); throw new InternalError(); // we are cloneable, so this does not happen } }