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