public void forEach(Consumer<? super Byte> action) { if (action == null) throw new java.lang.NullPointerException(); if (isEmpty()) return; int mc = modCount(); byte free = freeValue; byte removed = removedValue; char[] tab = table; long base = CHAR_BASE + BYTE_KEY_OFFSET; if (noRemoved()) { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free) { action.accept(key); } } } else { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free && key != removed) { action.accept(key); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
public String setToString() { if (isEmpty()) return "[]"; StringBuilder sb = new StringBuilder();
public String setToString() { if (isEmpty()) return "[]"; StringBuilder sb = new StringBuilder();
public boolean removeIf(Predicate<? super Byte> filter) { if (filter == null) throw new java.lang.NullPointerException(); if (isEmpty()) return false; boolean changed = false;
boolean removeAll(@Nonnull HashByteSet thisC, @Nonnull Collection<?> c) { if (thisC == c) throw new IllegalArgumentException(); if (isEmpty() || c.isEmpty()) return false; boolean changed = false;
public void forEach(ByteConsumer action) { if (action == null) throw new java.lang.NullPointerException(); if (isEmpty()) return; int mc = modCount(); byte free = freeValue; byte removed = removedValue; char[] tab = table; long base = CHAR_BASE + BYTE_KEY_OFFSET; if (noRemoved()) { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free) { action.accept(key); } } } else { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free && key != removed) { action.accept(key); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
public void forEach(Consumer<? super Byte> action) { if (action == null) throw new java.lang.NullPointerException(); if (isEmpty()) return; int mc = modCount(); byte free = freeValue; byte removed = removedValue; char[] tab = table; long base = CHAR_BASE + BYTE_KEY_OFFSET; if (noRemoved()) { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free) { action.accept(key); } } } else { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free && key != removed) { action.accept(key); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
public void forEach(ByteConsumer action) { if (action == null) throw new java.lang.NullPointerException(); if (isEmpty()) return; int mc = modCount(); byte free = freeValue; byte removed = removedValue; char[] tab = table; long base = CHAR_BASE + BYTE_KEY_OFFSET; if (noRemoved()) { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free) { action.accept(key); } } } else { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free && key != removed) { action.accept(key); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
public boolean reverseAddAllTo(ByteCollection c) { if (isEmpty()) return false; boolean changed = false; int mc = modCount(); byte free = freeValue; byte removed = removedValue; char[] tab = table; long base = CHAR_BASE + BYTE_KEY_OFFSET; if (noRemoved()) { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free) { changed |= c.add(key); } } } else { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free && key != removed) { changed |= c.add(key); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return changed; }
if (predicate == null) throw new java.lang.NullPointerException(); if (isEmpty()) return true; boolean terminated = false;
public boolean reverseAddAllTo(ByteCollection c) { if (isEmpty()) return false; boolean changed = false; int mc = modCount(); byte free = freeValue; byte removed = removedValue; char[] tab = table; long base = CHAR_BASE + BYTE_KEY_OFFSET; if (noRemoved()) { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free) { changed |= c.add(key); } } } else { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free && key != removed) { changed |= c.add(key); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return changed; }
if (thisC == c) throw new IllegalArgumentException(); if (isEmpty()) return false; if (c.isEmpty()) {
public boolean allContainingIn(ByteCollection c) { if (isEmpty()) return true; boolean containsAll = true;
if (predicate == null) throw new java.lang.NullPointerException(); if (isEmpty()) return true; boolean terminated = false;
public boolean allContainingIn(ByteCollection c) { if (isEmpty()) return true; boolean containsAll = true;
public boolean removeIf(BytePredicate filter) { if (filter == null) throw new java.lang.NullPointerException(); if (isEmpty()) return false; boolean changed = false;
public boolean reverseRemoveAllFrom(ByteSet s) { if (isEmpty() || s.isEmpty()) return false; boolean changed = false; int mc = modCount(); byte free = freeValue; byte removed = removedValue; char[] tab = table; long base = CHAR_BASE + BYTE_KEY_OFFSET; if (noRemoved()) { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free) { changed |= s.removeByte(key); } } } else { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free && key != removed) { changed |= s.removeByte(key); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return changed; }
public boolean reverseRemoveAllFrom(ByteSet s) { if (isEmpty() || s.isEmpty()) return false; boolean changed = false; int mc = modCount(); byte free = freeValue; byte removed = removedValue; char[] tab = table; long base = CHAR_BASE + BYTE_KEY_OFFSET; if (noRemoved()) { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free) { changed |= s.removeByte(key); } } } else { for (long off = ((long) tab.length) << CHAR_SCALE_SHIFT; (off -= CHAR_SCALE) >= 0L;) { byte key; if ((key = U.getByte(tab, base + off)) != free && key != removed) { changed |= s.removeByte(key); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); return changed; }
boolean removeAll(@Nonnull HashByteSet thisC, @Nonnull ByteCollection c) { if (thisC == c) throw new IllegalArgumentException(); if (isEmpty() || c.isEmpty()) return false; boolean changed = false;
public boolean removeIf(Predicate<? super Byte> filter) { if (filter == null) throw new java.lang.NullPointerException(); if (isEmpty()) return false; boolean changed = false;