@Override public int hashCode() { int hashCode = 0; int mc = modCount(); long[] keys = set; V[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { long key; if ((key = keys[i]) < FREE_BITS) { hashCode += ((int) (key ^ (key >>> 32))) ^ nullableValueHashCode(vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return hashCode; }
@Override public int hashCode() { int hashCode = 0; int mc = modCount(); long[] keys = set; V[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { long key; if ((key = keys[i]) < FREE_BITS) { hashCode += ((int) (key ^ (key >>> 32))) ^ nullableValueHashCode(vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return hashCode; }
public void forEach(BiConsumer<? super Double, ? super V> action) { if (action == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); long[] keys = set; V[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { long key; if ((key = keys[i]) < FREE_BITS) { action.accept(Double.longBitsToDouble(key), vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalDoubleObjMapOps<? super V> m) { if (this.isEmpty()) return; int mc = modCount(); long[] keys = set; V[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { long key; if ((key = keys[i]) < FREE_BITS) { m.justPut(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalDoubleObjMapOps<? super V> m) { if (this.isEmpty()) return; int mc = modCount(); long[] keys = set; V[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { long key; if ((key = keys[i]) < FREE_BITS) { m.justPut(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
public void replaceAll( BiFunction<? super Double, ? super V, ? extends V> function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); long[] keys = set; V[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { long key; if ((key = keys[i]) < FREE_BITS) { vals[i] = function.apply(Double.longBitsToDouble(key), vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(DoubleObjFunction<? super V, ? extends V> function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); long[] keys = set; V[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { long key; if ((key = keys[i]) < FREE_BITS) { vals[i] = function.apply(Double.longBitsToDouble(key), vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void forEach(DoubleObjConsumer<? super V> action) { if (action == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); long[] keys = set; V[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { long key; if ((key = keys[i]) < FREE_BITS) { action.accept(Double.longBitsToDouble(key), vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Nonnull @Override public DoubleObjCursor<V> cursor() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedMapCursor( mc); return new NoRemovedMapCursor(mc); }
@Nonnull @Override public DoubleObjCursor<V> cursor() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedMapCursor( mc); return new NoRemovedMapCursor(mc); }
@Override public DoubleCursor setCursor() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedKeyCursor( mc); return new NoRemovedKeyCursor(mc); }
@Override public DoubleIterator iterator() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedKeyIterator( mc); return new NoRemovedKeyIterator(mc); }
@Override public DoubleIterator iterator() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedKeyIterator( mc); return new NoRemovedKeyIterator(mc); }
@Override public DoubleCursor setCursor() { int mc = modCount(); if (!noRemoved()) return new SomeRemovedKeyCursor( mc); return new NoRemovedKeyCursor(mc); }