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