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, toStringadd, contains, containsAll, containsAll, isEmpty, longIterator, rem, remove, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArrayclearclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, addAll, addAll, addElements, addElements, getElements, indexOf, iterator, lastIndexOf, listIterator, removeElementsadd, addAll, get, indexOf, lastIndexOf, remove, setadd, addAll, contains, containsAll, longIterator, rem, removeAll, retainAll, toArray, toArray, toLongArray, toLongArrayadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArraycompareToprotected 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 Size64size in interface Collection<Long>size in class AbstractLongBigListpublic LongBigList length(long newSize)
public void size(long newSize)
size in interface BigList<Long>size in class AbstractLongBigListpublic LongBigListIterator listIterator()
listIterator in interface BigList<Long>listIterator in interface LongBigListlistIterator in class AbstractLongBigListpublic void add(int index,
long value)
public void add(long index,
long value)
add in interface LongBigListadd in class AbstractLongBigListpublic long getLong(long index)
getLong in interface LongBigListpublic long getLong(int index)
getLong in class AbstractLongBigListpublic long removeLong(long index)
removeLong in interface LongBigListremoveLong in class AbstractLongBigListpublic long set(long index,
long value)
set in interface LongBigListset in class AbstractLongBigListpublic long set(int index,
long value)
set in class AbstractLongBigListpublic LongBigList subList(long from, long to)
subList in interface BigList<Long>subList in interface LongBigListsubList in class AbstractLongBigList