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