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