/** * Returns <tt>true</tt> if the receiver contains the specified value. * * @return <tt>true</tt> if the receiver contains the specified value. */ public boolean containsValue(final long value) { return !forEachPair( new ByteLongProcedure() { @Override public boolean apply(byte iterKey, long iterValue) { return (value != iterValue); } } ); }
forEachPair( new ByteLongProcedure() { @Override other.forEachPair( new ByteLongProcedure() { @Override
public int hashCode() { final int[] buf = new int[size()]; forEachPair( new ByteLongProcedure() { int i = 0; @Override public boolean apply(byte key, long value) { buf[i++] = HashUtils.hash(key) ^ HashUtils.hash(value); return true; } } ); Arrays.sort(buf); return IntBuffer.wrap(buf).hashCode(); }
valueList.clear(); forEachPair( new ByteLongProcedure() { @Override
/** * Returns <tt>true</tt> if the receiver contains the specified value. * * @return <tt>true</tt> if the receiver contains the specified value. */ public boolean containsValue(final long value) { return !forEachPair( new ByteLongProcedure() { @Override public boolean apply(byte iterKey, long iterValue) { return (value != iterValue); } } ); }
/** * Returns <tt>true</tt> if the receiver contains the specified value. * * @return <tt>true</tt> if the receiver contains the specified value. */ public boolean containsValue(final long value) { return !forEachPair( new ByteLongProcedure() { @Override public boolean apply(byte iterKey, long iterValue) { return (value != iterValue); } } ); }
forEachPair( new ByteLongProcedure() { @Override other.forEachPair( new ByteLongProcedure() { @Override
public int hashCode() { final int[] buf = new int[size()]; forEachPair( new ByteLongProcedure() { int i = 0; @Override public boolean apply(byte key, long value) { buf[i++] = HashUtils.hash(key) ^ HashUtils.hash(value); return true; } } ); Arrays.sort(buf); return IntBuffer.wrap(buf).hashCode(); }
valueList.clear(); forEachPair( new ByteLongProcedure() { @Override
valueList.clear(); forEachPair( new ByteLongProcedure() { @Override
forEachPair( new ByteLongProcedure() { @Override