Class AbstractBitVector.LongSetView

All Implemented Interfaces:
LongBidirectionalIterable, LongCollection, LongIterable, LongSet, LongSortedSet, Size64, Serializable, Cloneable, Iterable<Long>, Collection<Long>, Set<Long>, SortedSet<Long>
Enclosing class:
AbstractBitVector

public static class AbstractBitVector.LongSetView extends AbstractLongSortedSet implements LongSet, Serializable, Size64
A view of a bit vector as a sorted set of long integers.

This class implements a view of a subvector as a sorted set of long integers using the subvector as a bit mask. If the end position is Long.MAX_VALUE, the vector is enlarged as needed (i.e., when a one beyond the current size is set), but it is never shrunk.

Outside of the specified range {contains(long) will return false and add(long) will cause an UnsupportedOperationException.

See Also: