Package it.unimi.dsi.bits
Class LongArrayBitVector.LongBigListView
- java.lang.Object
-
- java.util.AbstractCollection<java.lang.Long>
-
- it.unimi.dsi.fastutil.longs.AbstractLongCollection
-
- it.unimi.dsi.fastutil.longs.AbstractLongBigList
-
- it.unimi.dsi.bits.AbstractBitVector.LongBigListView
-
- it.unimi.dsi.bits.LongArrayBitVector.LongBigListView
-
- All Implemented Interfaces:
it.unimi.dsi.fastutil.BigList<java.lang.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<java.lang.Long>
,java.io.Serializable
,java.lang.Comparable<it.unimi.dsi.fastutil.BigList<? extends java.lang.Long>>
,java.lang.Iterable<java.lang.Long>
,java.util.Collection<java.lang.Long>
- Enclosing class:
- LongArrayBitVector
protected static class LongArrayBitVector.LongBigListView extends AbstractBitVector.LongBigListView
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class it.unimi.dsi.bits.AbstractBitVector.LongBigListView
fullMask, width
-
-
Constructor Summary
Constructors Constructor Description LongBigListView(LongArrayBitVector bitVector, int width)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(long value)
void
clear()
long
getLong(long index)
long
set(long index, long value)
-
Methods inherited from class it.unimi.dsi.bits.AbstractBitVector.LongBigListView
add, add, getLong, length, length, listIterator, removeLong, size, size, size64, subList
-
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongBigList
add, addAll, addAll, addAll, addAll, addElements, addElements, 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, toString
-
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongCollection
add, contains, containsAll, containsAll, forEach, remove, removeAll, removeAll, removeIf, retainAll, retainAll, toArray, toLongArray, toLongArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray, toArray
-
Methods 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, spliterator
-
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection
add, addAll, contains, contains, containsAll, longIterator, longParallelStream, longSpliterator, longStream, parallelStream, rem, remove, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toLongArray, toLongArray
-
-
-
-
Constructor Detail
-
LongBigListView
public LongBigListView(LongArrayBitVector bitVector, int width)
-
-
Method Detail
-
add
public boolean add(long value)
- Specified by:
add
in interfaceit.unimi.dsi.fastutil.longs.LongCollection
- Overrides:
add
in classit.unimi.dsi.fastutil.longs.AbstractLongBigList
-
getLong
public long getLong(long index)
- Specified by:
getLong
in interfaceit.unimi.dsi.fastutil.longs.LongBigList
- Overrides:
getLong
in classAbstractBitVector.LongBigListView
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<java.lang.Long>
- Overrides:
clear
in classit.unimi.dsi.fastutil.longs.AbstractLongBigList
-
set
public long set(long index, long value)
- Specified by:
set
in interfaceit.unimi.dsi.fastutil.longs.LongBigList
- Overrides:
set
in classAbstractBitVector.LongBigListView
-
-