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