public abstract static class LongSortedSet.SubSet extends LongSet.Base implements LongSortedSet
LongSortedSet.SubSet
LongSet.Base
Constructor and Description |
---|
SubSet(LongSortedSet set) |
Modifier and Type | Method and Description |
---|---|
boolean |
addLong(long x) |
boolean |
containsLong(long x) |
protected boolean |
excluded(long x) |
protected LongIterator |
fromIncluded(LongIterator iterator) |
protected abstract boolean |
included(long x) |
boolean |
removeLong(long x) |
int |
size() |
protected LongIterator |
untilExcluded(LongIterator iterator) |
equals, hashCode
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparator, create, create, first, firstLong, headSet, headSet, last, lastLong, spliterator, subSet, subSet, tailSet, tailSet
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
addAllLongs, addAllLongs, removeIf, toLongArray
containsAllLongs, containsAllLongs, containsAnyLongs, containsAnyLongs, forEach, forEachLong, from, from, longStream, of, once, once, parallelLongStream, removeAllLongs, removeAllLongs, removeLongsIf, retainAllLongs, retainAllLongs, sequence
public SubSet(LongSortedSet set)
public int size()
size
in interface java.util.Collection<java.lang.Long>
size
in interface java.util.Set<java.lang.Long>
public boolean containsLong(long x)
containsLong
in interface LongIterable
public boolean removeLong(long x)
removeLong
in interface LongIterable
public boolean addLong(long x)
addLong
in interface LongCollection
protected LongIterator untilExcluded(LongIterator iterator)
protected LongIterator fromIncluded(LongIterator iterator)
protected abstract boolean included(long x)
protected boolean excluded(long x)