public static class AbstractBitVector.LongBigListView extends it.unimi.dsi.fastutil.longs.AbstractLongList 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.
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)
Adds the long at the given position.
|
long |
getLong(int index) |
long |
getLong(long index)
Returns the long at the given position.
|
long |
length()
The number of elements in this big list.
|
LongBigList |
length(long newSize)
Sets the number of elements in this big list.
|
it.unimi.dsi.fastutil.longs.LongListIterator |
listIterator() |
long |
removeLong(long index)
Removes the long at the given position.
|
long |
set(int index,
long value) |
long |
set(long index,
long value)
Sets the long at the given position.
|
int |
size() |
void |
size(int newSize) |
LongBigList |
subList(long from,
long to)
Returns a big sublist view of this big list.
|
add, 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
clear
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, addAll, addAll, addElements, addElements, getElements, indexOf, iterator, lastIndexOf, listIterator, longListIterator, longListIterator, longSubList, removeElements, removeLong, subList
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, lastIndexOf, remove, remove, removeAll, retainAll, set, toArray, 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()
LongBigList
length
in interface LongBigList
List.size()
public int size()
size
in interface Collection<Long>
size
in interface List<Long>
size
in class AbstractCollection<Long>
public LongBigList length(long newSize)
LongBigList
length
in interface LongBigList
LongList.size(int)
public void size(int newSize)
size
in interface it.unimi.dsi.fastutil.longs.LongList
size
in class it.unimi.dsi.fastutil.longs.AbstractLongList
public it.unimi.dsi.fastutil.longs.LongListIterator listIterator()
listIterator
in interface it.unimi.dsi.fastutil.longs.LongList
listIterator
in interface List<Long>
listIterator
in class it.unimi.dsi.fastutil.longs.AbstractLongList
public void add(int index, long value)
add
in interface it.unimi.dsi.fastutil.longs.LongList
add
in class it.unimi.dsi.fastutil.longs.AbstractLongList
public void add(long index, long value)
LongBigList
add
in interface LongBigList
index
- a position in the list.value
- a long value.List.add(int,Object)
public long getLong(long index)
LongBigList
getLong
in interface LongBigList
index
- a position in the list.List.get(int)
public long getLong(int index)
getLong
in interface it.unimi.dsi.fastutil.longs.LongList
public long removeLong(long index)
LongBigList
removeLong
in interface LongBigList
index
- a position in the list.List.remove(int)
public long set(long index, long value)
LongBigList
set
in interface LongBigList
index
- a position in the list.value
- a long value.List.set(int,Object)
public long set(int index, long value)
set
in interface it.unimi.dsi.fastutil.longs.LongList
set
in class it.unimi.dsi.fastutil.longs.AbstractLongList
public LongBigList subList(long from, long to)
LongBigList
subList
in interface LongBigList
from
- the starting element (inclusive).to
- the ending element (exclusive).List.subList(int, int)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.