@Override public void accept(char e) { set.add(e); } });
@Override boolean justRemove(char key) { return removeChar(key); }
char free; if (key == (free = freeValue)) { free = changeFree(); incrementModCount(); keys[index] = key; postInsertHook(); return true;
@Nonnull @Override public CharCursor cursor() { return setCursor(); }
@Override public boolean retainAll(@Nonnull Collection<?> c) { return retainAll(this, c); } }
@Override @Nonnull public UpdatableQHashCharSetGO newUpdatableSet(int expectedSize) { UpdatableQHashCharSetGO set = new UpdatableQHashCharSet(); set.init(configWrapper, expectedSize, getFree()); return set; }
char free; if (key == (free = freeValue)) { free = changeFree(); incrementModCount(); keys[index] = key; postInsertHook(); return true;
@Nonnull @Override public CharCursor cursor() { return setCursor(); }
@Override public boolean retainAll(@Nonnull Collection<?> c) { return retainAll(this, c); } }
@Override @Nonnull public UpdatableQHashCharSetGO newUpdatableSet(int expectedSize) { UpdatableQHashCharSetGO set = new UpdatableQHashCharSet(); set.init(configWrapper, expectedSize, getFree()); return set; }
@Override public void accept(char e) { set.add(e); } });
@Override boolean justRemove(char key) { return removeChar(key); }
@Override @Nonnull public UpdatableQHashCharSetGO newUpdatableSet(Iterable<Character> elements, int expectedSize) { if (elements instanceof CharCollection) { if (elements instanceof SeparateKVCharQHash) { SeparateKVCharQHash hash = (SeparateKVCharQHash) elements; if (hash.hashConfig().equals(hashConf)) { UpdatableQHashCharSet set = new UpdatableQHashCharSet(); set.copy(hash); return set; } } int size = elements instanceof Set ? ((Set) elements).size() : expectedSize; UpdatableQHashCharSetGO set = newUpdatableSet(size); set.addAll((Collection<Character>) elements); return set; } else { int size = elements instanceof Set ? ((Set) elements).size() : expectedSize; UpdatableQHashCharSetGO set = newUpdatableSet(size); for (char e : elements) { set.add(e); } return set; } } }