Package it.unimi.dsi.bits
Class AbstractBitVector.LongBigListView
java.lang.Object
java.util.AbstractCollection<Long>
it.unimi.dsi.fastutil.longs.AbstractLongCollection
it.unimi.dsi.fastutil.longs.AbstractLongBigList
it.unimi.dsi.bits.AbstractBitVector.LongBigListView
- All Implemented Interfaces:
it.unimi.dsi.fastutil.BigList<Long>,it.unimi.dsi.fastutil.longs.LongBigList,it.unimi.dsi.fastutil.longs.LongCollection,it.unimi.dsi.fastutil.longs.LongIterable,it.unimi.dsi.fastutil.longs.LongStack,it.unimi.dsi.fastutil.Size64,it.unimi.dsi.fastutil.Stack<Long>,Serializable,Comparable<it.unimi.dsi.fastutil.BigList<? extends Long>>,Iterable<Long>,Collection<Long>
- Direct Known Subclasses:
LongArrayBitVector.LongBigListView,LongBigArrayBitVector.LongBigListView
- Enclosing class:
AbstractBitVector
public static class AbstractBitVector.LongBigListView
extends it.unimi.dsi.fastutil.longs.AbstractLongBigList
implements it.unimi.dsi.fastutil.longs.LongBigList, Serializable
A list-of-integers view of a bit vector.
This class implements in the obvious way a view of a bit vector as a list of integers of given width. The vector is enlarged as needed (i.e., when adding new elements), but it is never shrunk.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLongBigList
it.unimi.dsi.fastutil.longs.AbstractLongBigList.LongRandomAccessSubList, it.unimi.dsi.fastutil.longs.AbstractLongBigList.LongSubList -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLongBigListView(BitVector bitVector, int width) Returns a list-of-integers view of a bit vector. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, long value) voidadd(long index, long value) longgetLong(int index) longgetLong(long index) longlength()Deprecated.it.unimi.dsi.fastutil.longs.LongBigListlength(long newSize) Deprecated.Please usesize(long).it.unimi.dsi.fastutil.longs.LongBigListIteratorlongremoveLong(long index) longset(long index, long value) intsize()Deprecated.voidsize(long newSize) Resizes this list, enlarging the underying bit vector as necessary.longsize64()it.unimi.dsi.fastutil.longs.LongBigListsubList(long from, long to) Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongBigList
add, add, addAll, addAll, addAll, addAll, addElements, addElements, clear, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, forEach, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, peek, peekLong, pop, popLong, push, push, rem, remove, removeElements, set, setElements, top, topLong, toStringMethods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongCollection
add, contains, containsAll, containsAll, forEach, remove, removeAll, removeAll, removeIf, retainAll, retainAll, toArray, toLongArray, toLongArrayMethods inherited from class java.util.AbstractCollection
isEmpty, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.BigList
addAllMethods inherited from interface java.util.Collection
addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray, toArrayMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface it.unimi.dsi.fastutil.longs.LongBigList
add, addAll, addAll, addAll, addAll, addAll, addElements, addElements, get, getElements, getElements, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, remove, removeElements, set, setElements, setElements, setElements, spliteratorMethods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection
add, add, addAll, contains, contains, containsAll, longIterator, longParallelStream, longSpliterator, longStream, parallelStream, rem, remove, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toLongArray, toLongArrayMethods inherited from interface it.unimi.dsi.fastutil.longs.LongIterable
forEach, forEach, forEachMethods inherited from interface it.unimi.dsi.fastutil.Stack
isEmpty
-
Field Details
-
bitVector
The underlying bit vector. -
width
protected final int widthThe width in bit of an element of this list view. -
fullMask
protected final long fullMaskA bit mask containingwidthbits set to one.
-
-
Constructor Details
-
LongBigListView
Returns a list-of-integers view of a bit vector.- Parameters:
bitVector- a bit vector.width- the bit width of the integers.
-
-
Method Details
-
size
Deprecated.- Specified by:
sizein interfaceit.unimi.dsi.fastutil.BigList<Long>- Specified by:
sizein interfaceCollection<Long>- Specified by:
sizein interfaceit.unimi.dsi.fastutil.Size64- Overrides:
sizein classit.unimi.dsi.fastutil.longs.AbstractLongBigList
-
size64
public long size64()- Specified by:
size64in interfaceit.unimi.dsi.fastutil.Size64
-
length
Deprecated.Please usesize64().- Returns:
size64()
-
size
public void size(long newSize) Resizes this list, enlarging the underying bit vector as necessary.- Specified by:
sizein interfaceit.unimi.dsi.fastutil.BigList<Long>- Overrides:
sizein classit.unimi.dsi.fastutil.longs.AbstractLongBigList- Parameters:
newSize- the new size.
-
length
Deprecated.Please usesize(long). -
listIterator
public it.unimi.dsi.fastutil.longs.LongBigListIterator listIterator()- Specified by:
listIteratorin interfaceit.unimi.dsi.fastutil.BigList<Long>- Specified by:
listIteratorin interfaceit.unimi.dsi.fastutil.longs.LongBigList- Overrides:
listIteratorin classit.unimi.dsi.fastutil.longs.AbstractLongBigList
-
add
public void add(int index, long value) - Implementation Specification:
- This implementation delegates to
add(long, long).
-
add
public void add(long index, long value) - Specified by:
addin interfaceit.unimi.dsi.fastutil.longs.LongBigList- Overrides:
addin classit.unimi.dsi.fastutil.longs.AbstractLongBigList
-
getLong
public long getLong(long index) - Specified by:
getLongin interfaceit.unimi.dsi.fastutil.longs.LongBigList
-
getLong
public long getLong(int index) - Implementation Specification:
- This implementation delegates to
getLong(long).
-
removeLong
public long removeLong(long index) - Specified by:
removeLongin interfaceit.unimi.dsi.fastutil.longs.LongBigList- Overrides:
removeLongin classit.unimi.dsi.fastutil.longs.AbstractLongBigList
-
set
public long set(long index, long value) - Specified by:
setin interfaceit.unimi.dsi.fastutil.longs.LongBigList- Overrides:
setin classit.unimi.dsi.fastutil.longs.AbstractLongBigList
-
subList
public it.unimi.dsi.fastutil.longs.LongBigList subList(long from, long to) - Specified by:
subListin interfaceit.unimi.dsi.fastutil.BigList<Long>- Specified by:
subListin interfaceit.unimi.dsi.fastutil.longs.LongBigList- Overrides:
subListin classit.unimi.dsi.fastutil.longs.AbstractLongBigList
-
size64().