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
|
| Constructor and Description |
|---|
ShortSets() |
| Modifier and Type | Method and Description |
|---|---|
static ShortSet |
empty()
EmptySet getter
|
static ShortSet |
singleton(short element)
Creates a Singleton set of a given element
|
static ShortNavigableSet |
synchronize(ShortNavigableSet s)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static ShortNavigableSet |
synchronize(ShortNavigableSet s,
java.lang.Object mutex)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static ShortOrderedSet |
synchronize(ShortOrderedSet s)
Creates a Synchronized OrderedSet while preserving the ITrimmable interface
|
static ShortOrderedSet |
synchronize(ShortOrderedSet s,
java.lang.Object mutex)
Creates a Synchronized OrderedSet while preserving the ITrimmable interface
|
static ShortSet |
synchronize(ShortSet s)
Creates a Synchronized set while preserving the ITrimmable interface
|
static ShortSet |
synchronize(ShortSet s,
java.lang.Object mutex)
Creates a Synchronized set while preserving the ITrimmable interface
|
static ShortSortedSet |
synchronize(ShortSortedSet s)
Creates a Synchronized SortedSet while preserving the ITrimmable interface
|
static ShortSortedSet |
synchronize(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 ShortOrderedSet |
unmodifiable(ShortOrderedSet s)
Creates Unmodifyable OrderedSet wrapper
|
static ShortSet |
unmodifiable(ShortSet s)
Creates Unmodifyable Set wrapper
|
static ShortSortedSet |
unmodifiable(ShortSortedSet s)
Creates Unmodifyable SortedSet wrapper
|
public static ShortSet empty()
public static ShortSet synchronize(ShortSet s)
s - the set that should be synchronizedpublic static ShortSet synchronize(ShortSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static ShortSortedSet synchronize(ShortSortedSet s)
s - the set that should be synchronizedpublic static ShortSortedSet synchronize(ShortSortedSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static ShortOrderedSet synchronize(ShortOrderedSet s)
s - the set that should be synchronizedpublic static ShortOrderedSet synchronize(ShortOrderedSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static ShortNavigableSet synchronize(ShortNavigableSet s)
s - the set that should be synchronizedpublic static ShortNavigableSet synchronize(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 unmodifiablepublic static ShortSortedSet unmodifiable(ShortSortedSet s)
s - sortedSet that should be made unmodifiablepublic static ShortOrderedSet unmodifiable(ShortOrderedSet s)
s - OrderedSet that should be made unmodifiablepublic static ShortNavigableSet unmodifiable(ShortNavigableSet s)
s - navigableSet that should be made unmodifiablepublic static ShortSet singleton(short element)
element - the element that should be converted into a singleton set