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
-
-
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.AbstractLongSet
equals, hashCode, rem
-
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongCollection
add, addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toLongArray, toLongArray, toString
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection
addAll, containsAll, removeAll, removeIf, removeIf, retainAll, toArray, toLongArray, toLongArray
-
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongIterable
forEach, forEach
-
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongSortedSet
first, headSet, last, subSet, tailSet
-
Methods inherited from interface java.util.Set
add, addAll, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray
-
Methods inherited from interface java.util.SortedSet
spliterator
-
-
-
-
Field Detail
-
bitVector
protected final BitVector bitVector
-
-
Constructor Detail
-
LongSetView
public LongSetView(BitVector bitVector, long from, long to)
-
-
Method Detail
-
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>
-
size
@Deprecated public int size()
Deprecated.
-
iterator
public LongBidirectionalIterator 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
public LongBidirectionalIterator iterator(long from)
- Specified by:
iteratorin interfaceLongSortedSet
-
firstLong
public long firstLong()
- Specified by:
firstLongin interfaceLongSortedSet
-
lastLong
public long lastLong()
- Specified by:
lastLongin interfaceLongSortedSet
-
comparator
public LongComparator comparator()
- Specified by:
comparatorin interfaceLongSortedSet- Specified by:
comparatorin interfaceSortedSet<Long>
-
headSet
public LongSortedSet headSet(long to)
- Specified by:
headSetin interfaceLongSortedSet
-
tailSet
public LongSortedSet tailSet(long from)
- Specified by:
tailSetin interfaceLongSortedSet
-
subSet
public LongSortedSet subSet(long from, long to)
- Specified by:
subSetin interfaceLongSortedSet
-
-