| Package | Description |
|---|---|
| it.unimi.dsi.fastutil.longs |
Provides type-specific classes for long elements or keys.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractLongList
An abstract class providing basic methods for lists implementing a type-specific list interface.
|
static class |
AbstractLongList.LongSubList
A class implementing a sublist view.
|
class |
LongArrayList
A type-specific array-based list; provides some additional methods that use polymorphism to avoid (un)boxing.
|
static class |
LongLists.EmptyList
An immutable class representing an empty type-specific list.
|
static class |
LongLists.Singleton
An immutable class representing a type-specific singleton list.
|
static class |
LongLists.SynchronizedList
A synchronized wrapper class for lists.
|
static class |
LongLists.SynchronizedRandomAccessList
A synchronized wrapper class for random-access lists.
|
static class |
LongLists.UnmodifiableList
An unmodifiable wrapper class for lists.
|
static class |
LongLists.UnmodifiableRandomAccessList
An unmodifiable wrapper class for random-access lists.
|
| Modifier and Type | Field and Description |
|---|---|
protected LongList |
AbstractLongList.LongSubList.l
The list this sublist restricts.
|
protected LongList |
LongLists.SynchronizedList.list |
protected LongList |
LongLists.UnmodifiableList.list |
| Modifier and Type | Method and Description |
|---|---|
static LongList |
LongIterators.pour(LongIterator i)
Pours an iterator, returning a type-specific list.
|
static LongList |
LongIterators.pour(LongIterator i,
int max)
Pours an iterator, returning a type-specific list, with a limit on the number of elements.
|
static LongList |
LongLists.shuffle(LongList l,
Random random)
Shuffles the specified list using the specified pseudorandom number generator.
|
static LongList |
LongLists.singleton(long element)
Returns a type-specific immutable list containing only the specified element.
|
static LongList |
LongLists.singleton(Object element)
Returns a type-specific immutable list containing only the specified element.
|
LongList |
LongLists.EmptyList.subList(int from,
int to) |
LongList |
LongLists.Singleton.subList(int from,
int to) |
LongList |
LongLists.SynchronizedList.subList(int from,
int to) |
LongList |
LongLists.SynchronizedRandomAccessList.subList(int from,
int to) |
LongList |
LongLists.UnmodifiableList.subList(int from,
int to) |
LongList |
LongLists.UnmodifiableRandomAccessList.subList(int from,
int to) |
LongList |
LongList.subList(int from,
int to)
Returns a type-specific view of the portion of this list from the index
from, inclusive, to the index to, exclusive. |
LongList |
AbstractLongList.subList(int from,
int to) |
LongList |
AbstractLongList.LongSubList.subList(int from,
int to) |
static LongList |
LongLists.synchronize(LongList l)
Returns a synchronized type-specific list backed by the given type-specific list.
|
static LongList |
LongLists.synchronize(LongList l,
Object sync)
Returns a synchronized type-specific list backed by the given type-specific list, using an assigned object to synchronize.
|
static LongList |
LongLists.unmodifiable(LongList l)
Returns an unmodifiable type-specific list backed by the given type-specific list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
LongLists.EmptyList.addAll(int i,
LongList c) |
boolean |
LongLists.Singleton.addAll(int i,
LongList c) |
boolean |
LongLists.SynchronizedList.addAll(int index,
LongList l) |
boolean |
LongLists.UnmodifiableList.addAll(int index,
LongList l) |
boolean |
LongList.addAll(int index,
LongList c)
Inserts all of the elements in the specified type-specific list into this type-specific list at the specified position (optional operation).
|
boolean |
AbstractLongList.addAll(int index,
LongList l)
Inserts all of the elements in the specified type-specific list into this type-specific list at the specified position (optional operation).
|
boolean |
AbstractLongList.LongSubList.addAll(int index,
LongList l) |
boolean |
LongArrayList.addAll(int index,
LongList l) |
boolean |
LongLists.EmptyList.addAll(LongList c) |
boolean |
LongLists.Singleton.addAll(LongList c) |
boolean |
LongLists.SynchronizedList.addAll(LongList l) |
boolean |
LongLists.UnmodifiableList.addAll(LongList l) |
boolean |
LongList.addAll(LongList c)
Appends all of the elements in the specified type-specific list to the end of this type-specific list (optional operation).
|
boolean |
AbstractLongList.addAll(LongList l)
Appends all of the elements in the specified type-specific list to the end of this type-specific list (optional operation).
|
static LongBigList |
LongBigLists.asBigList(LongList list)
Returns a big list backed by the specified list.
|
static LongList |
LongLists.shuffle(LongList l,
Random random)
Shuffles the specified list using the specified pseudorandom number generator.
|
static LongList |
LongLists.synchronize(LongList l)
Returns a synchronized type-specific list backed by the given type-specific list.
|
static LongList |
LongLists.synchronize(LongList l,
Object sync)
Returns a synchronized type-specific list backed by the given type-specific list, using an assigned object to synchronize.
|
static LongList |
LongLists.unmodifiable(LongList l)
Returns an unmodifiable type-specific list backed by the given type-specific list.
|
| Constructor and Description |
|---|
ListBigList(LongList list) |
LongArrayList(LongList l)
Creates a new array list and fills it with a given type-specific list.
|
LongSubList(LongList l,
int from,
int to) |
SynchronizedList(LongList l) |
SynchronizedList(LongList l,
Object sync) |
SynchronizedRandomAccessList(LongList l) |
SynchronizedRandomAccessList(LongList l,
Object sync) |
UnmodifiableList(LongList l) |
UnmodifiableRandomAccessList(LongList l) |
Copyright © 2020. All rights reserved.