@Override public void accept(short e) { set.add(e); } });
private static void addAll(UpdatableLHashShortSetGO set, Iterable<? extends Short> elems) { if (elems instanceof Collection) { // noinspection unchecked set.addAll((Collection<? extends Short>) elems); } else { for (short e : elems) { set.add(e); } } }
@Override public void accept(short e) { set.add(e); } });
private static void addAll(UpdatableLHashShortSetGO set, Iterable<? extends Short> elems) { if (elems instanceof Collection) { // noinspection unchecked set.addAll((Collection<? extends Short>) elems); } else { for (short e : elems) { set.add(e); } } }
@Override public boolean add(Short e) { return add(e.shortValue()); }
@Override public boolean add(Short e) { return add(e.shortValue()); }
@Override @Nonnull public UpdatableLHashShortSetGO newUpdatableSetOf(short e1) { UpdatableLHashShortSetGO set = newUpdatableSet(1); set.add(e1); return set; }
@Override @Nonnull public UpdatableLHashShortSetGO newUpdatableSetOf(short e1) { UpdatableLHashShortSetGO set = newUpdatableSet(1); set.add(e1); return set; }
@Override @Nonnull public UpdatableLHashShortSetGO newUpdatableSet(Iterator<Short> elements, int expectedSize) { UpdatableLHashShortSetGO set = newUpdatableSet(expectedSize); while (elements.hasNext()) { set.add(elements.next()); } return shrunk(set); }
@Override @Nonnull public UpdatableLHashShortSetGO newUpdatableSet(Iterator<Short> elements, int expectedSize) { UpdatableLHashShortSetGO set = newUpdatableSet(expectedSize); while (elements.hasNext()) { set.add(elements.next()); } return shrunk(set); }
@Override @Nonnull public UpdatableLHashShortSetGO newUpdatableSet(Short[] elements, int expectedSize) { UpdatableLHashShortSetGO set = newUpdatableSet(expectedSize); for (short e : elements) { set.add(e); } return shrunk(set); }
@Override @Nonnull public UpdatableLHashShortSetGO newUpdatableSet(short[] elements, int expectedSize) { UpdatableLHashShortSetGO set = newUpdatableSet(expectedSize); for (short e : elements) { set.add(e); } return shrunk(set); }
@Override @Nonnull public UpdatableLHashShortSetGO newUpdatableSet(Short[] elements, int expectedSize) { UpdatableLHashShortSetGO set = newUpdatableSet(expectedSize); for (short e : elements) { set.add(e); } return shrunk(set); }
@Override @Nonnull public UpdatableLHashShortSetGO newUpdatableSet(short[] elements, int expectedSize) { UpdatableLHashShortSetGO set = newUpdatableSet(expectedSize); for (short e : elements) { set.add(e); } return shrunk(set); }