@Override public void accept(long e) { set.add(e); } });
@Override boolean justRemove(long key) { return removeLong(key); }
long free; if (key == (free = freeValue)) { free = changeFree(); incrementModCount(); keys[index] = key; postInsertHook(); return true;
@Nonnull @Override public LongCursor cursor() { return setCursor(); }
@Override public boolean retainAll(@Nonnull Collection<?> c) { return retainAll(this, c); } }
@Override @Nonnull public UpdatableQHashLongSetGO newUpdatableSet(int expectedSize) { UpdatableQHashLongSetGO set = new UpdatableQHashLongSet(); set.init(configWrapper, expectedSize, getFree()); return set; }
long free; if (key == (free = freeValue)) { free = changeFree(); incrementModCount(); keys[index] = key; postInsertHook(); return true;
@Nonnull @Override public LongCursor cursor() { return setCursor(); }
@Override public boolean retainAll(@Nonnull Collection<?> c) { return retainAll(this, c); } }
@Override @Nonnull public UpdatableQHashLongSetGO newUpdatableSet(int expectedSize) { UpdatableQHashLongSetGO set = new UpdatableQHashLongSet(); set.init(configWrapper, expectedSize, getFree()); return set; }
@Override public void accept(long e) { set.add(e); } });
@Override boolean justRemove(long key) { return removeLong(key); }
@Override @Nonnull public UpdatableQHashLongSetGO newUpdatableSet(Iterable<Long> elements, int expectedSize) { if (elements instanceof LongCollection) { if (elements instanceof SeparateKVLongQHash) { SeparateKVLongQHash hash = (SeparateKVLongQHash) elements; if (hash.hashConfig().equals(hashConf)) { UpdatableQHashLongSet set = new UpdatableQHashLongSet(); set.copy(hash); return set; } } int size = elements instanceof Set ? ((Set) elements).size() : expectedSize; UpdatableQHashLongSetGO set = newUpdatableSet(size); set.addAll((Collection<Long>) elements); return set; } else { int size = elements instanceof Set ? ((Set) elements).size() : expectedSize; UpdatableQHashLongSetGO set = newUpdatableSet(size); for (long e : elements) { set.add(e); } return set; } } }