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