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