| Package | Description |
|---|---|
| it.unimi.dsi.fastutil.objects |
Provides type-specific classes for object elements or keys.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractReferenceList<K>
An abstract class providing basic methods for lists implementing a type-specific list interface.
|
static class |
AbstractReferenceList.ReferenceSubList<K>
A class implementing a sublist view.
|
class |
ReferenceArrayList<K>
A type-specific array-based list; provides some additional methods that use polymorphism to avoid (un)boxing.
|
static class |
ReferenceLists.EmptyList<K>
An immutable class representing an empty type-specific list.
|
static class |
ReferenceLists.Singleton<K>
An immutable class representing a type-specific singleton list.
|
static class |
ReferenceLists.SynchronizedList<K>
A synchronized wrapper class for lists.
|
static class |
ReferenceLists.SynchronizedRandomAccessList<K>
A synchronized wrapper class for random-access lists.
|
static class |
ReferenceLists.UnmodifiableList<K>
An unmodifiable wrapper class for lists.
|
static class |
ReferenceLists.UnmodifiableRandomAccessList<K>
An unmodifiable wrapper class for random-access lists.
|
| Modifier and Type | Field and Description |
|---|---|
protected ReferenceList<K> |
AbstractReferenceList.ReferenceSubList.l
The list this sublist restricts.
|
protected ReferenceList<K> |
ReferenceLists.SynchronizedList.list |
protected ReferenceList<K> |
ReferenceLists.UnmodifiableList.list |
| Modifier and Type | Method and Description |
|---|---|
static <K> ReferenceList<K> |
ReferenceLists.emptyList()
Returns an empty list (immutable).
|
static <K> ReferenceList<K> |
ReferenceLists.shuffle(ReferenceList<K> l,
Random random)
Shuffles the specified list using the specified pseudorandom number generator.
|
static <K> ReferenceList<K> |
ReferenceLists.singleton(K element)
Returns a type-specific immutable list containing only the specified element.
|
ReferenceList<K> |
ReferenceLists.EmptyList.subList(int from,
int to) |
ReferenceList<K> |
ReferenceLists.Singleton.subList(int from,
int to) |
ReferenceList<K> |
ReferenceLists.SynchronizedList.subList(int from,
int to) |
ReferenceList<K> |
ReferenceLists.SynchronizedRandomAccessList.subList(int from,
int to) |
ReferenceList<K> |
ReferenceLists.UnmodifiableList.subList(int from,
int to) |
ReferenceList<K> |
ReferenceLists.UnmodifiableRandomAccessList.subList(int from,
int to) |
ReferenceList<K> |
ReferenceList.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. |
ReferenceList<K> |
AbstractReferenceList.subList(int from,
int to) |
ReferenceList<K> |
AbstractReferenceList.ReferenceSubList.subList(int from,
int to) |
static <K> ReferenceList<K> |
ReferenceLists.synchronize(ReferenceList<K> l)
Returns a synchronized type-specific list backed by the given type-specific list.
|
static <K> ReferenceList<K> |
ReferenceLists.synchronize(ReferenceList<K> l,
Object sync)
Returns a synchronized type-specific list backed by the given type-specific list, using an assigned object to synchronize.
|
static <K> ReferenceList<K> |
ReferenceLists.unmodifiable(ReferenceList<K> l)
Returns an unmodifiable type-specific list backed by the given type-specific list.
|
| Modifier and Type | Method and Description |
|---|---|
static <K> ReferenceBigList<K> |
ReferenceBigLists.asBigList(ReferenceList<K> list)
Returns a big list backed by the specified list.
|
static <K> ReferenceList<K> |
ReferenceLists.shuffle(ReferenceList<K> l,
Random random)
Shuffles the specified list using the specified pseudorandom number generator.
|
static <K> ReferenceList<K> |
ReferenceLists.synchronize(ReferenceList<K> l)
Returns a synchronized type-specific list backed by the given type-specific list.
|
static <K> ReferenceList<K> |
ReferenceLists.synchronize(ReferenceList<K> l,
Object sync)
Returns a synchronized type-specific list backed by the given type-specific list, using an assigned object to synchronize.
|
static <K> ReferenceList<K> |
ReferenceLists.unmodifiable(ReferenceList<K> l)
Returns an unmodifiable type-specific list backed by the given type-specific list.
|
| Constructor and Description |
|---|
ListBigList(ReferenceList<K> list) |
ReferenceArrayList(ReferenceList<? extends K> l)
Creates a new array list and fills it with a given type-specific list.
|
ReferenceSubList(ReferenceList<K> l,
int from,
int to) |
SynchronizedList(ReferenceList<K> l) |
SynchronizedList(ReferenceList<K> l,
Object sync) |
SynchronizedRandomAccessList(ReferenceList<K> l) |
SynchronizedRandomAccessList(ReferenceList<K> l,
Object sync) |
UnmodifiableList(ReferenceList<K> l) |
UnmodifiableRandomAccessList(ReferenceList<K> l) |
Copyright © 2020. All rights reserved.