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