@Override public void accept(short e) { set.add(e); } });
@Override boolean justRemove(short key) { return removeShort(key); }
short free; if (key == (free = freeValue)) { free = changeFree(); incrementModCount(); keys[index] = key; postInsertHook(); return true;
@Override @Nonnull public UpdatableLHashShortSetGO newUpdatableSet(int expectedSize) { UpdatableLHashShortSetGO set = new UpdatableLHashShortSet(); set.init(configWrapper, expectedSize, getFree()); return set; }
@Override public boolean retainAll(@Nonnull Collection<?> c) { return retainAll(this, c); } }
@Nonnull @Override public ShortCursor cursor() { return setCursor(); }
short free; if (key == (free = freeValue)) { free = changeFree(); incrementModCount(); keys[index] = key; postInsertHook(); return true;
@Override @Nonnull public UpdatableLHashShortSetGO newUpdatableSet(int expectedSize) { UpdatableLHashShortSetGO set = new UpdatableLHashShortSet(); set.init(configWrapper, expectedSize, getFree()); return set; }
@Override public boolean retainAll(@Nonnull Collection<?> c) { return retainAll(this, c); } }
@Nonnull @Override public ShortCursor cursor() { return setCursor(); }
@Override public void accept(short e) { set.add(e); } });
@Override boolean justRemove(short key) { return removeShort(key); }
@Override @Nonnull public UpdatableLHashShortSetGO newUpdatableSet(Iterable<Short> elements, int expectedSize) { if (elements instanceof ShortCollection) { if (elements instanceof SeparateKVShortLHash) { SeparateKVShortLHash hash = (SeparateKVShortLHash) elements; if (hash.hashConfig().equals(hashConf)) { UpdatableLHashShortSet set = new UpdatableLHashShortSet(); set.copy(hash); return set; } } int size = elements instanceof Set ? ((Set) elements).size() : expectedSize; UpdatableLHashShortSetGO set = newUpdatableSet(size); set.addAll((Collection<Short>) elements); return set; } else { int size = elements instanceof Set ? ((Set) elements).size() : expectedSize; UpdatableLHashShortSetGO set = newUpdatableSet(size); for (short e : elements) { set.add(e); } return set; } } }