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