@Override public boolean test(double a, double b) { return map.containsEntry(a, b); } });
@Override public boolean test(double a, double b) { return map.containsEntry(a, b); } });
@Override public boolean allEntriesContainingIn(InternalDoubleDoubleMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { if (!m.containsEntry(key, tab[i + 1])) { containsAll = false; break; } } } return containsAll; }
@Override public boolean allEntriesContainingIn(InternalDoubleDoubleMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { if (!m.containsEntry(key, tab[i + 1])) { containsAll = false; break; } } } return containsAll; }
@Override public boolean allEntriesContainingIn(InternalDoubleDoubleMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { if (!m.containsEntry(key, tab[i + 1])) { containsAll = false; break; } } } return containsAll; }
@Override public boolean allEntriesContainingIn(InternalDoubleDoubleMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { if (!m.containsEntry(key, tab[i + 1])) { containsAll = false; break; } } } return containsAll; }
@Override public boolean allEntriesContainingIn(InternalDoubleDoubleMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { if (!m.containsEntry(key, tab[i + 1])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }
@Override public boolean allEntriesContainingIn(InternalDoubleDoubleMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { if (!m.containsEntry(key, tab[i + 1])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }
public static boolean containsAllEntries(final InternalDoubleDoubleMapOps map, Map<?, ?> another) { if (map == another) throw new IllegalArgumentException(); if (another instanceof DoubleDoubleMap) { DoubleDoubleMap m2 = (DoubleDoubleMap) another; if (map.size() < m2.size()) return false; if (m2 instanceof InternalDoubleDoubleMapOps) { //noinspection unchecked return ((InternalDoubleDoubleMapOps) m2).allEntriesContainingIn(map); } return m2.forEachWhile(new DoubleDoublePredicate() { @Override public boolean test(double a, double b) { return map.containsEntry(a, b); } }); } for (Map.Entry<?, ?> e : another.entrySet()) { if (!map.containsEntry((Double) e.getKey(), (Double) e.getValue())) return false; } return true; }
@Override public boolean allEntriesContainingIn(InternalDoubleDoubleMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { if (!m.containsEntry(key, tab[i + 1])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }
public static boolean containsAllEntries(final InternalDoubleDoubleMapOps map, Map<?, ?> another) { if (map == another) throw new IllegalArgumentException(); if (another instanceof DoubleDoubleMap) { DoubleDoubleMap m2 = (DoubleDoubleMap) another; if (map.size() < m2.size()) return false; if (m2 instanceof InternalDoubleDoubleMapOps) { //noinspection unchecked return ((InternalDoubleDoubleMapOps) m2).allEntriesContainingIn(map); } return m2.forEachWhile(new DoubleDoublePredicate() { @Override public boolean test(double a, double b) { return map.containsEntry(a, b); } }); } for (Map.Entry<?, ?> e : another.entrySet()) { if (!map.containsEntry((Double) e.getKey(), (Double) e.getValue())) return false; } return true; }
@Override public boolean allEntriesContainingIn(InternalDoubleDoubleMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { if (!m.containsEntry(key, tab[i + 1])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }
@Override public boolean allEntriesContainingIn(InternalDoubleDoubleMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { if (!m.containsEntry(key, tab[i + 1])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }
@Override public boolean allEntriesContainingIn(InternalDoubleDoubleMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { if (!m.containsEntry(key, tab[i + 1])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }
@Override public boolean allEntriesContainingIn(InternalDoubleDoubleMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { if (!m.containsEntry(key, tab[i + 1])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }
@Override public boolean allEntriesContainingIn(InternalDoubleDoubleMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { if (!m.containsEntry(key, tab[i + 1])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }