|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LongBigList
A list of longs with long indices.
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
).
Method Summary | |
---|---|
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. |
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongList |
---|
add, addAll, addAll, addAll, addElements, addElements, getElements, getLong, indexOf, iterator, lastIndexOf, listIterator, listIterator, longListIterator, longListIterator, longSubList, removeElements, removeLong, set, size, subList |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, lastIndexOf, remove, remove, removeAll, retainAll, set, size, toArray, toArray |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection |
---|
add, addAll, contains, containsAll, longIterator, rem, removeAll, retainAll, toArray, toArray, toLongArray, toLongArray |
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |