public class LongLists
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static speiger.src.collections.longs.utils.LongLists.EmptyList |
EMPTY
Empty List reference
|
| Constructor and Description |
|---|
LongLists() |
| Modifier and Type | Method and Description |
|---|---|
static speiger.src.collections.longs.utils.LongLists.EmptyList |
emptyList()
Returns a Immutable EmptyList instance that is automatically casted.
|
static LongList |
singletonList(long element)
Creates a Unmodifiable Singleton list
|
static LongList |
synchronizedList(LongList l)
Returns a synchronized List instance based on the instance given.
|
static LongList |
synchronizedList(LongList l,
java.lang.Object mutex)
Returns a synchronized List instance based on the instance given.
|
static LongList |
unmodifiableList(LongList l)
Returns a Immutable List instance based on the instance given.
|
public static final speiger.src.collections.longs.utils.LongLists.EmptyList EMPTY
public static speiger.src.collections.longs.utils.LongLists.EmptyList emptyList()
public static LongList unmodifiableList(LongList l)
l - that should be made immutable/unmodifyablepublic static LongList synchronizedList(LongList l)
l - that should be synchronizedpublic static LongList synchronizedList(LongList l, java.lang.Object mutex)
l - that should be synchronizedmutex - is the controller of the synchronization block.public static LongList singletonList(long element)
element - that should be used in the Singleton