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