public class DoubleCollections
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DoubleCollections.EmptyCollection
Empty Collection implementation for the empty collection function
|
static class |
DoubleCollections.SynchronizedCollection
Synchronized Collection Wrapper for the synchronizedCollection function
|
static class |
DoubleCollections.UnmodifiableCollection
Unmodifyable Collection Wrapper for the unmodifyableCollection method
|
| Modifier and Type | Field and Description |
|---|---|
static DoubleCollection |
EMPTY
Empty Collection Reference
|
| Constructor and Description |
|---|
DoubleCollections() |
| Modifier and Type | Method and Description |
|---|---|
static DoubleCollection |
empty()
Returns a Immutable EmptyCollection instance that is automatically casted.
|
static DoubleCollection |
singleton(double element)
Creates a Singleton Collection of a given element
|
static DoubleCollection |
synchronize(DoubleCollection c)
Returns a synchronized Collection instance based on the instance given.
|
static DoubleCollection |
synchronize(DoubleCollection c,
java.lang.Object mutex)
Returns a synchronized Collection instance based on the instance given.
|
static DoubleCollection |
unmodifiable(DoubleCollection c)
Returns a Immutable Collection instance based on the instance given.
|
public static final DoubleCollection EMPTY
public static DoubleCollection empty()
public static DoubleCollection unmodifiable(DoubleCollection c)
c - that should be made immutable/unmodifiablepublic static DoubleCollection synchronize(DoubleCollection c)
c - that should be synchronizedpublic static DoubleCollection synchronize(DoubleCollection c, java.lang.Object mutex)
c - that should be synchronizedmutex - is the controller of the synchronization block.public static DoubleCollection singleton(double element)
element - the element that should be converted into a singleton collection