public static class AbstractBitVector.LongBigListView extends AbstractLongBigList implements LongBigList, Serializable
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.
AbstractLongBigList.LongSubList
Modifier and Type | Field and Description |
---|---|
protected BitVector |
bitVector
The underlying bit vector.
|
protected long |
fullMask
A bit mask containing
width bits set to one. |
protected int |
width
The width in bit of an element of this list view.
|
Constructor and Description |
---|
AbstractBitVector.LongBigListView(BitVector bitVector,
int width) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
long value) |
void |
add(long index,
long value) |
long |
getLong(int index) |
long |
getLong(long index) |
long |
length() |
LongBigList |
length(long newSize) |
LongBigListIterator |
listIterator() |
long |
removeLong(long index) |
long |
set(int index,
long value) |
long |
set(long index,
long value) |
int |
size() |
void |
size(long newSize) |
long |
size64() |
LongBigList |
subList(long from,
long to) |
add, 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
add, contains, containsAll, containsAll, isEmpty, longIterator, rem, remove, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArray
clear
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, addAll, addAll, addElements, addElements, getElements, indexOf, iterator, lastIndexOf, listIterator, removeElements
add, addAll, get, indexOf, lastIndexOf, remove, set
add, addAll, contains, containsAll, longIterator, rem, removeAll, retainAll, toArray, toArray, toLongArray, toLongArray
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray
compareTo
protected final BitVector bitVector
protected final int width
protected final long fullMask
width
bits set to one.public AbstractBitVector.LongBigListView(BitVector bitVector, int width)
public long length()
public int size()
size
in interface Size64
size
in interface Collection<Long>
size
in class AbstractLongBigList
public LongBigList length(long newSize)
public void size(long newSize)
size
in interface BigList<Long>
size
in class AbstractLongBigList
public LongBigListIterator listIterator()
listIterator
in interface BigList<Long>
listIterator
in interface LongBigList
listIterator
in class AbstractLongBigList
public void add(int index, long value)
public void add(long index, long value)
add
in interface LongBigList
add
in class AbstractLongBigList
public long getLong(long index)
getLong
in interface LongBigList
public long getLong(int index)
getLong
in class AbstractLongBigList
public long removeLong(long index)
removeLong
in interface LongBigList
removeLong
in class AbstractLongBigList
public long set(long index, long value)
set
in interface LongBigList
set
in class AbstractLongBigList
public long set(int index, long value)
set
in class AbstractLongBigList
public LongBigList subList(long from, long to)
subList
in interface BigList<Long>
subList
in interface LongBigList
subList
in class AbstractLongBigList