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