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