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