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