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