Package it.unimi.dsi.bits
Class AbstractBitVector.LongSetView
java.lang.Object
java.util.AbstractCollection<Long>
it.unimi.dsi.fastutil.longs.AbstractLongCollection
it.unimi.dsi.fastutil.longs.AbstractLongSet
it.unimi.dsi.fastutil.longs.AbstractLongSortedSet
it.unimi.dsi.bits.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
An integer sorted set view of a bit vector.
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.
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LongSetView(BitVector bitVector, long from, long to) -
Method Summary
Modifier and Type Method Description booleanadd(long index)voidclear()LongComparatorcomparator()booleancontains(long index)longfirstLong()LongSortedSetheadSet(long to)LongBidirectionalIteratoriterator()LongBidirectionalIteratoriterator(long from)longlastLong()booleanremove(long index)intsize()Deprecated.longsize64()LongSortedSetsubSet(long from, long to)LongSortedSettailSet(long from)Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongCollection
add, addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toLongArray, toLongArray, toStringMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection
addAll, containsAll, removeAll, removeIf, removeIf, retainAll, toArray, toLongArray, toLongArrayMethods inherited from interface it.unimi.dsi.fastutil.longs.LongSortedSet
first, headSet, last, subSet, tailSet
-
Field Details
-
Constructor Details
-
Method Details
-
contains
public boolean contains(long index)- Specified by:
containsin interfaceLongCollection- Overrides:
containsin classAbstractLongCollection
-
add
public boolean add(long index)- Specified by:
addin interfaceLongCollection- Overrides:
addin classAbstractLongCollection
-
remove
public boolean remove(long index)- Specified by:
removein interfaceLongSet- Overrides:
removein classAbstractLongSet
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Long>- Specified by:
clearin interfaceSet<Long>- Overrides:
clearin classAbstractCollection<Long>
-
size64
public long size64() -
size
Deprecated. -
iterator
- Specified by:
iteratorin interfaceCollection<Long>- Specified by:
iteratorin interfaceIterable<Long>- Specified by:
iteratorin interfaceLongBidirectionalIterable- Specified by:
iteratorin interfaceLongCollection- Specified by:
iteratorin interfaceLongIterable- Specified by:
iteratorin interfaceLongSet- Specified by:
iteratorin interfaceLongSortedSet- Specified by:
iteratorin interfaceSet<Long>- Specified by:
iteratorin classAbstractLongSortedSet
-
iterator
- Specified by:
iteratorin interfaceLongSortedSet
-
firstLong
public long firstLong()- Specified by:
firstLongin interfaceLongSortedSet
-
lastLong
public long lastLong()- Specified by:
lastLongin interfaceLongSortedSet
-
comparator
- Specified by:
comparatorin interfaceLongSortedSet- Specified by:
comparatorin interfaceSortedSet<Long>
-
headSet
- Specified by:
headSetin interfaceLongSortedSet
-
tailSet
- Specified by:
tailSetin interfaceLongSortedSet
-
subSet
- Specified by:
subSetin interfaceLongSortedSet
-