protected static class LongArrayBitVector.LongBigListView extends AbstractBitVector.LongBigListView
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.
fullMask, width
Constructor and Description |
---|
LongArrayBitVector.LongBigListView(LongArrayBitVector bitVector,
int width) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(long value) |
void |
clear() |
long |
getLong(long index)
Returns the long at the given position.
|
long |
set(long index,
long value)
Sets the long at the given position.
|
add, add, getLong, length, length, listIterator, removeLong, set, size, size, subList
add, addAll, addAll, addAll, addAll, addAll, addAll, addElements, addElements, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, longListIterator, longListIterator, longSubList, peek, peekLong, pop, popLong, push, push, rem, remove, remove, removeElements, removeLong, set, subList, top, topLong, toString
add, contains, containsAll, containsAll, isEmpty, longIterator, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, addAll, addAll, addElements, addElements, getElements, indexOf, iterator, lastIndexOf, listIterator, longListIterator, longListIterator, longSubList, removeElements, removeLong, subList
add, add, addAll, addAll, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, lastIndexOf, remove, remove, removeAll, retainAll, set, toArray, toArray
compareTo
public LongArrayBitVector.LongBigListView(LongArrayBitVector bitVector, int width)
public boolean add(long value)
add
in interface it.unimi.dsi.fastutil.longs.LongCollection
add
in interface it.unimi.dsi.fastutil.longs.LongList
add
in class it.unimi.dsi.fastutil.longs.AbstractLongList
public long getLong(long index)
LongBigList
getLong
in interface LongBigList
getLong
in class AbstractBitVector.LongBigListView
index
- a position in the list.List.get(int)
public void clear()
clear
in interface Collection<Long>
clear
in interface List<Long>
clear
in class AbstractCollection<Long>
public long set(long index, long value)
LongBigList
set
in interface LongBigList
set
in class AbstractBitVector.LongBigListView
index
- a position in the list.value
- a long value.List.set(int,Object)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.