/** * {@inheritDoc} */ @Override public int putAll(final ByteObjectAssociativeContainer<? extends VType> container) { return putAll((Iterable<? extends ByteObjectCursor<? extends VType>>) container); }
/** * Create a hash map from all key-value pairs of another container. */ public ByteObjectHashMap(final ByteObjectAssociativeContainer<VType> container) { this(container.size()); putAll(container); }
/** * {@inheritDoc} */ @Override public ByteObjectHashMap<VType> clone() { //clone to size() to prevent some cases of exponential sizes, final ByteObjectHashMap<VType> cloned = new ByteObjectHashMap<VType>(this.size(), this.loadFactor); //We must NOT clone because of independent perturbations seeds cloned.putAll(this); return cloned; }