@Override public boolean test(int a, byte b) { return map.containsEntry(a, b); } });
@Override public boolean test(int a, byte b) { return map.containsEntry(a, b); } });
@Override public boolean allEntriesContainingIn(InternalIntByteMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int free = freeValue; int[] keys = set; byte[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { int key; if ((key = keys[i]) != free) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break; } } } return containsAll; }
@Override public boolean allEntriesContainingIn(InternalIntByteMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int free = freeValue; int[] keys = set; byte[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { int key; if ((key = keys[i]) != free) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break; } } } return containsAll; }
@Override public boolean allEntriesContainingIn(InternalIntByteMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int free = freeValue; int[] keys = set; byte[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { int key; if ((key = keys[i]) != free) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break; } } } return containsAll; }
@Override public boolean allEntriesContainingIn(InternalIntByteMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int free = freeValue; int[] keys = set; byte[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { int key; if ((key = keys[i]) != free) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break; } } } return containsAll; }
int key; if ((key = keys[i]) != free) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break; int key; if ((key = keys[i]) != free && key != removed) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break;
@Override public boolean allEntriesContainingIn(InternalIntByteMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); int free = freeValue; int[] keys = set; byte[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { int key; if ((key = keys[i]) != free) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }
public static boolean containsAllEntries(final InternalIntByteMapOps map, Map<?, ?> another) { if (map == another) throw new IllegalArgumentException(); if (another instanceof IntByteMap) { IntByteMap m2 = (IntByteMap) another; if (map.size() < m2.size()) return false; if (m2 instanceof InternalIntByteMapOps) { //noinspection unchecked return ((InternalIntByteMapOps) m2).allEntriesContainingIn(map); } return m2.forEachWhile(new IntBytePredicate() { @Override public boolean test(int a, byte b) { return map.containsEntry(a, b); } }); } for (Map.Entry<?, ?> e : another.entrySet()) { if (!map.containsEntry((Integer) e.getKey(), (Byte) e.getValue())) return false; } return true; }
@Override public boolean allEntriesContainingIn(InternalIntByteMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); int free = freeValue; int[] keys = set; byte[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { int key; if ((key = keys[i]) != free) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }
int key; if ((key = keys[i]) != free) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break; int key; if ((key = keys[i]) != free && key != removed) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break;
public static boolean containsAllEntries(final InternalIntByteMapOps map, Map<?, ?> another) { if (map == another) throw new IllegalArgumentException(); if (another instanceof IntByteMap) { IntByteMap m2 = (IntByteMap) another; if (map.size() < m2.size()) return false; if (m2 instanceof InternalIntByteMapOps) { //noinspection unchecked return ((InternalIntByteMapOps) m2).allEntriesContainingIn(map); } return m2.forEachWhile(new IntBytePredicate() { @Override public boolean test(int a, byte b) { return map.containsEntry(a, b); } }); } for (Map.Entry<?, ?> e : another.entrySet()) { if (!map.containsEntry((Integer) e.getKey(), (Byte) e.getValue())) return false; } return true; }
@Override public boolean allEntriesContainingIn(InternalIntByteMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); int free = freeValue; int[] keys = set; byte[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { int key; if ((key = keys[i]) != free) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }
@Override public boolean allEntriesContainingIn(InternalIntByteMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); int free = freeValue; int[] keys = set; byte[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { int key; if ((key = keys[i]) != free) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }
@Override public boolean allEntriesContainingIn(InternalIntByteMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); int free = freeValue; int[] keys = set; byte[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { int key; if ((key = keys[i]) != free) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }
@Override public boolean allEntriesContainingIn(InternalIntByteMapOps m) { if (this.isEmpty()) return true; boolean containsAll = true; int mc = modCount(); int free = freeValue; int[] keys = set; byte[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { int key; if ((key = keys[i]) != free) { if (!m.containsEntry(key, vals[i])) { containsAll = false; break; } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return containsAll; }