/** * 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 { TLongHashSetDecorator copy = (TLongHashSetDecorator) super.clone(); copy._set = (TLongHashSet) _set.clone(); return copy; } catch (CloneNotSupportedException e) { // assert(false); throw new InternalError(); // we are cloneable } }