public final class ReferenceBigLists
extends java.lang.Object
Collections,
BigList| Modifier and Type | Class | Description |
|---|---|---|
static class |
ReferenceBigLists.EmptyBigList<K> |
An immutable class representing an empty type-specific big list.
|
static class |
ReferenceBigLists.ListBigList<K> |
A class exposing a list as a big list.
|
static class |
ReferenceBigLists.Singleton<K> |
An immutable class representing a type-specific singleton big list.
|
static class |
ReferenceBigLists.SynchronizedBigList<K> |
A synchronized wrapper class for big lists.
|
static class |
ReferenceBigLists.UnmodifiableBigList<K> |
An unmodifiable wrapper class for big lists.
|
| Modifier and Type | Field | Description |
|---|---|---|
static ReferenceBigLists.EmptyBigList |
EMPTY_BIG_LIST |
An empty big list (immutable).
|
| Modifier and Type | Method | Description |
|---|---|---|
static <K> ReferenceBigList<K> |
asBigList(ReferenceList<K> list) |
Returns a big list backed by the specified list.
|
static <K> ReferenceBigList<K> |
emptyList() |
Returns an empty big list (immutable).
|
static <K> ReferenceBigList<K> |
shuffle(ReferenceBigList<K> l,
java.util.Random random) |
Shuffles the specified big list using the specified pseudorandom number
generator.
|
static <K> ReferenceBigList<K> |
singleton(K element) |
Returns a type-specific immutable big list containing only the specified
element.
|
static <K> ReferenceBigList<K> |
synchronize(ReferenceBigList<K> l) |
Returns a synchronized type-specific big list backed by the given
type-specific big list.
|
static <K> ReferenceBigList<K> |
synchronize(ReferenceBigList<K> l,
java.lang.Object sync) |
Returns a synchronized type-specific big list backed by the given
type-specific big list, using an assigned object to synchronize.
|
static <K> ReferenceBigList<K> |
unmodifiable(ReferenceBigList<K> l) |
Returns an unmodifiable type-specific big list backed by the given
type-specific big list.
|
public static final ReferenceBigLists.EmptyBigList EMPTY_BIG_LIST
public static <K> ReferenceBigList<K> shuffle(ReferenceBigList<K> l, java.util.Random random)
l - the big list to be shuffled.random - a pseudorandom number generator.l.public static <K> ReferenceBigList<K> emptyList()
This method provides a typesafe access to EMPTY_BIG_LIST.
public static <K> ReferenceBigList<K> singleton(K element)
element - the only element of the returned big list.element.public static <K> ReferenceBigList<K> synchronize(ReferenceBigList<K> l)
l - the big list to be wrapped in a synchronized big list.Collections.synchronizedList(List)public static <K> ReferenceBigList<K> synchronize(ReferenceBigList<K> l, java.lang.Object sync)
l - the big list to be wrapped in a synchronized big list.sync - an object that will be used to synchronize the access to the big
list.Collections.synchronizedList(List)public static <K> ReferenceBigList<K> unmodifiable(ReferenceBigList<K> l)
l - the big list to be wrapped in an unmodifiable big list.Collections.unmodifiableList(List)public static <K> ReferenceBigList<K> asBigList(ReferenceList<K> list)
list - a list.