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 |
---|
AbstractBitVector.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, tailSet
equals, hashCode, rem, remove
add, addAll, addAll, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, longIterator, rem, removeAll, retainAll, toArray, toArray, toLongArray, toLongArray
protected final BitVector bitVector
public AbstractBitVector.LongSetView(BitVector bitVector, long from, long to)
public boolean contains(long index)
contains
in interface LongCollection
contains
in class AbstractLongCollection
public boolean add(long index)
add
in interface LongCollection
add
in class AbstractLongCollection
public boolean remove(long index)
remove
in interface LongSet
remove
in class AbstractLongSet
public 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 LongCollection
iterator
in interface LongIterable
iterator
in interface LongSet
iterator
in interface LongSortedSet
iterator
in interface Iterable<Long>
iterator
in interface Collection<Long>
iterator
in interface Set<Long>
iterator
in class AbstractLongSortedSet
public LongBidirectionalIterator iterator(long from)
iterator
in interface LongSortedSet
public long firstLong()
firstLong
in interface LongSortedSet
public long lastLong()
lastLong
in interface LongSortedSet
public LongComparator comparator()
comparator
in interface LongSortedSet
comparator
in interface SortedSet<Long>
public LongSortedSet headSet(long to)
headSet
in interface LongSortedSet
public LongSortedSet tailSet(long from)
tailSet
in interface LongSortedSet
public LongSortedSet subSet(long from, long to)
subSet
in interface LongSortedSet