public interface LongBigList
extends it.unimi.dsi.fastutil.longs.LongList
Unfortunately, List
is limited to positions smaller than or equal to Integer.MAX_VALUE
.
Since bits in a not-so-large array need to be indexed with longs, the list view over a bit vector
requires a more powerful interface. The naming follows the fastutil
conventions (actually, this class extends LongList
).
Modifier and Type | Method and Description |
---|---|
void |
add(long index,
long value)
Adds the long at the given position.
|
long |
getLong(long index)
Returns the long at the given position.
|
long |
length()
The number of elements in this big list.
|
LongBigList |
length(long newLength)
Sets the number of elements in this big list.
|
long |
removeLong(long index)
Removes the long at the given position.
|
long |
set(long index,
long value)
Sets the long at the given position.
|
LongBigList |
subList(long from,
long to)
Returns a big sublist view of this big list.
|
add, add, addAll, addAll, addAll, addElements, addElements, getElements, getLong, indexOf, iterator, lastIndexOf, listIterator, listIterator, longListIterator, longListIterator, longSubList, removeElements, removeLong, set, size, subList
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, lastIndexOf, remove, remove, removeAll, retainAll, set, size, toArray, toArray
compareTo
long getLong(long index)
index
- a position in the list.List.get(int)
long removeLong(long index)
index
- a position in the list.List.remove(int)
long set(long index, long value)
index
- a position in the list.value
- a long value.List.set(int,Object)
void add(long index, long value)
index
- a position in the list.value
- a long value.List.add(int,Object)
long length()
List.size()
LongBigList length(long newLength)
LongList.size(int)
LongBigList subList(long from, long to)
from
- the starting element (inclusive).to
- the ending element (exclusive).List.subList(int, int)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.