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