it.unimi.dsi.bits
Class LongArrayBitVector.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
it.unimi.dsi.bits.LongArrayBitVector.LongBigListView
- All Implemented Interfaces:
- BigList<Long>, LongBigList, LongCollection, LongIterable, LongStack, Size64, Stack<Long>, Serializable, Comparable<BigList<? extends Long>>, Iterable<Long>, Collection<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
|
Method Summary |
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, set, size, size, size64, subList |
| Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongBigList |
add, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addElements, addElements, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, peek, peekLong, pop, popLong, push, push, rem, remove, remove, removeElements, removeLong, set, size, top, topLong, toString |
| Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongCollection |
add, contains, containsAll, containsAll, isEmpty, longIterator, rem, remove, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArray |
| Methods inherited from interface it.unimi.dsi.fastutil.longs.LongBigList |
addAll, addAll, addAll, addElements, addElements, getElements, indexOf, iterator, lastIndexOf, listIterator, removeElements |
| Methods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection |
addAll, contains, containsAll, longIterator, rem, removeAll, retainAll, toArray, toArray, toLongArray, toLongArray |
| Methods inherited from interface java.util.Collection |
add, addAll, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
isEmpty |
LongArrayBitVector.LongBigListView
public LongArrayBitVector.LongBigListView(LongArrayBitVector bitVector,
int width)
add
public boolean add(long value)
- Specified by:
add in interface LongCollection- Overrides:
add in class AbstractLongBigList
getLong
public long getLong(long index)
- Specified by:
getLong in interface LongBigList- Overrides:
getLong in class AbstractBitVector.LongBigListView
clear
public void clear()
- Specified by:
clear in interface Collection<Long>- Overrides:
clear in class AbstractCollection<Long>
set
public long set(long index,
long value)
- Specified by:
set in interface LongBigList- Overrides:
set in class AbstractBitVector.LongBigListView