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