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