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 |
singleton(int element)
Creates a Singleton set of a given element
|
static IntNavigableSet |
synchronize(IntNavigableSet s)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static IntNavigableSet |
synchronize(IntNavigableSet s,
java.lang.Object mutex)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static IntOrderedSet |
synchronize(IntOrderedSet s)
Creates a Synchronized OrderedSet while preserving the ITrimmable interface
|
static IntOrderedSet |
synchronize(IntOrderedSet s,
java.lang.Object mutex)
Creates a Synchronized OrderedSet while preserving the ITrimmable interface
|
static IntSet |
synchronize(IntSet s)
Creates a Synchronized set while preserving the ITrimmable interface
|
static IntSet |
synchronize(IntSet s,
java.lang.Object mutex)
Creates a Synchronized set while preserving the ITrimmable interface
|
static IntSortedSet |
synchronize(IntSortedSet s)
Creates a Synchronized SortedSet while preserving the ITrimmable interface
|
static IntSortedSet |
synchronize(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 IntOrderedSet |
unmodifiable(IntOrderedSet s)
Creates Unmodifyable OrderedSet wrapper
|
static IntSet |
unmodifiable(IntSet s)
Creates Unmodifyable Set wrapper
|
static IntSortedSet |
unmodifiable(IntSortedSet s)
Creates Unmodifyable SortedSet wrapper
|
public static IntSet empty()
public static IntSet synchronize(IntSet s)
s - the set that should be synchronizedpublic static IntSet synchronize(IntSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static IntSortedSet synchronize(IntSortedSet s)
s - the set that should be synchronizedpublic static IntSortedSet synchronize(IntSortedSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static IntOrderedSet synchronize(IntOrderedSet s)
s - the set that should be synchronizedpublic static IntOrderedSet synchronize(IntOrderedSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static IntNavigableSet synchronize(IntNavigableSet s)
s - the set that should be synchronizedpublic static IntNavigableSet synchronize(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 unmodifiablepublic static IntSortedSet unmodifiable(IntSortedSet s)
s - sortedSet that should be made unmodifiablepublic static IntOrderedSet unmodifiable(IntOrderedSet s)
s - OrderedSet that should be made unmodifiablepublic static IntNavigableSet unmodifiable(IntNavigableSet s)
s - navigableSet that should be made unmodifiablepublic static IntSet singleton(int element)
element - the element that should be converted into a singleton set