public class LongLists
extends java.lang.Object
| Constructor and Description |
|---|
LongLists() |
| Modifier and Type | Method and Description |
|---|---|
static speiger.src.collections.longs.utils.LongLists.EmptyList |
empty()
Returns a Immutable EmptyList instance that is automatically casted.
|
static LongList |
reverse(LongList list)
Reverses the list
|
static LongList |
shuffle(LongList list)
Shuffles the list
|
static LongList |
shuffle(LongList list,
java.util.Random random)
Shuffles the list
|
static LongList |
singleton(long element)
Creates a Unmodifiable Singleton list
|
static LongList |
synchronize(LongList l)
Returns a synchronized List instance based on the instance given.
|
static LongList |
synchronize(LongList l,
java.lang.Object mutex)
Returns a synchronized List instance based on the instance given.
|
static LongList |
unmodifiable(LongList l)
Returns a Immutable List instance based on the instance given.
|
public static speiger.src.collections.longs.utils.LongLists.EmptyList empty()
public static LongList unmodifiable(LongList l)
l - that should be made immutable/unmodifiablepublic static LongList synchronize(LongList l)
l - that should be synchronizedpublic static LongList synchronize(LongList l, java.lang.Object mutex)
l - that should be synchronizedmutex - is the controller of the synchronization block.public static LongList singleton(long element)
element - that should be used in the Singletonpublic static LongList reverse(LongList list)
list - that should be reversed.public static LongList shuffle(LongList list)
list - that should be Shuffled.