public static class AbstractBitVector.LongSetView extends AbstractLongSortedSet implements LongSet, Serializable
This class implements in the obvious way an integer set view of a bit vector. The vector is enlarged as needed (i.e., when a one beyond the current size is set), but it is never shrunk.
| Constructor and Description |
|---|
LongSetView(BitVector bitVector,
long from,
long to) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long index) |
void |
clear() |
LongComparator |
comparator() |
boolean |
contains(long index) |
long |
firstLong() |
LongSortedSet |
headSet(long to) |
LongBidirectionalIterator |
iterator() |
LongBidirectionalIterator |
iterator(long from) |
long |
lastLong() |
boolean |
remove(long index) |
int |
size() |
LongSortedSet |
subSet(long from,
long to) |
LongSortedSet |
tailSet(long from) |
first, headSet, last, longIterator, subSet, tailSetequals, hashCode, rem, removeadd, addAll, addAll, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, longIterator, rem, removeAll, retainAll, toArray, toArray, toLongArray, toLongArrayadd, addAll, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streamspliteratorprotected final BitVector bitVector
public LongSetView(BitVector bitVector, long from, long to)
public boolean contains(long index)
contains in interface LongCollectioncontains in class AbstractLongCollectionpublic boolean add(long index)
add in interface LongCollectionadd in class AbstractLongCollectionpublic boolean remove(long index)
remove in interface LongSetremove in class AbstractLongSetpublic void clear()
clear in interface Collection<Long>clear in interface Set<Long>clear in class AbstractCollection<Long>public int size()
size in interface Collection<Long>size in interface Set<Long>size in class AbstractCollection<Long>public LongBidirectionalIterator iterator()
iterator in interface LongCollectioniterator in interface LongIterableiterator in interface LongSetiterator in interface LongSortedSetiterator in interface Iterable<Long>iterator in interface Collection<Long>iterator in interface Set<Long>iterator in class AbstractLongSortedSetpublic LongBidirectionalIterator iterator(long from)
iterator in interface LongSortedSetpublic long firstLong()
firstLong in interface LongSortedSetpublic long lastLong()
lastLong in interface LongSortedSetpublic LongComparator comparator()
comparator in interface LongSortedSetcomparator in interface SortedSet<Long>public LongSortedSet headSet(long to)
headSet in interface LongSortedSetpublic LongSortedSet tailSet(long from)
tailSet in interface LongSortedSetpublic LongSortedSet subSet(long from, long to)
subSet in interface LongSortedSet