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