public class ShortSets
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ShortSets.UnmodifiableSet
Unmodifyable Set wrapper that helps is used with unmodifyableSet function
|
| Modifier and Type | Field and Description |
|---|---|
static ShortSet |
EMPTY
Empty Set Variable
|
| Constructor and Description |
|---|
ShortSets() |
| Modifier and Type | Method and Description |
|---|---|
static ShortSet |
empty()
EmptySet getter
|
static ShortSet |
singletonSet(short element)
Creates a Singleton set of a given element
|
static ShortNavigableSet |
synchronizedSet(ShortNavigableSet s)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static ShortNavigableSet |
synchronizedSet(ShortNavigableSet s,
java.lang.Object mutex)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static ShortSet |
synchronizedSet(ShortSet s)
Creates a Synchronized set while preserving the ITrimmable interface
|
static ShortSet |
synchronizedSet(ShortSet s,
java.lang.Object mutex)
Creates a Synchronized set while preserving the ITrimmable interface
|
static ShortSortedSet |
synchronizedSet(ShortSortedSet s)
Creates a Synchronized SortedSet while preserving the ITrimmable interface
|
static ShortSortedSet |
synchronizedSet(ShortSortedSet s,
java.lang.Object mutex)
Creates a Synchronized SortedSet while preserving the ITrimmable interface
|
static ShortNavigableSet |
unmodifiable(ShortNavigableSet s)
Creates Unmodifyable NavigableSet wrapper
|
static ShortSet |
unmodifiable(ShortSet s)
Creates Unmodifyable Set wrapper
|
static ShortSortedSet |
unmodifiable(ShortSortedSet s)
Creates Unmodifyable SortedSet wrapper
|
public static final ShortSet EMPTY
public static ShortSet empty()
public static ShortSet synchronizedSet(ShortSet s)
s - the set that should be synchronizedpublic static ShortSet synchronizedSet(ShortSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static ShortSortedSet synchronizedSet(ShortSortedSet s)
s - the set that should be synchronizedpublic static ShortSortedSet synchronizedSet(ShortSortedSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static ShortNavigableSet synchronizedSet(ShortNavigableSet s)
s - the set that should be synchronizedpublic static ShortNavigableSet synchronizedSet(ShortNavigableSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static ShortSet unmodifiable(ShortSet s)
s - set that should be made unmodifyablepublic static ShortSortedSet unmodifiable(ShortSortedSet s)
s - sortedSet that should be made unmodifyablepublic static ShortNavigableSet unmodifiable(ShortNavigableSet s)
s - navigableSet that should be made unmodifyablepublic static ShortSet singletonSet(short element)
element - the element that should be converted into a singleton set