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