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