public class ObjectSets
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectSets.UnmodifiableSet<T>
Unmodifyable Set wrapper that helps is used with unmodifyableSet function
|
| Modifier and Type | Field and Description |
|---|---|
static ObjectSet<?> |
EMPTY
Empty Set Variable
|
| Constructor and Description |
|---|
ObjectSets() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ObjectSet<T> |
empty()
EmptySet getter
|
static <T> ObjectSet<T> |
singletonSet(T element)
Creates a Singleton set of a given element
|
static <T> ObjectNavigableSet<T> |
synchronizedSet(ObjectNavigableSet<T> s)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static <T> ObjectNavigableSet<T> |
synchronizedSet(ObjectNavigableSet<T> s,
java.lang.Object mutex)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static <T> ObjectSet<T> |
synchronizedSet(ObjectSet<T> s)
Creates a Synchronized set while preserving the ITrimmable interface
|
static <T> ObjectSet<T> |
synchronizedSet(ObjectSet<T> s,
java.lang.Object mutex)
Creates a Synchronized set while preserving the ITrimmable interface
|
static <T> ObjectSortedSet<T> |
synchronizedSet(ObjectSortedSet<T> s)
Creates a Synchronized SortedSet while preserving the ITrimmable interface
|
static <T> ObjectSortedSet<T> |
synchronizedSet(ObjectSortedSet<T> s,
java.lang.Object mutex)
Creates a Synchronized SortedSet while preserving the ITrimmable interface
|
static <T> ObjectNavigableSet<T> |
unmodifiable(ObjectNavigableSet<T> s)
Creates Unmodifyable NavigableSet wrapper
|
static <T> ObjectSet<T> |
unmodifiable(ObjectSet<T> s)
Creates Unmodifyable Set wrapper
|
static <T> ObjectSortedSet<T> |
unmodifiable(ObjectSortedSet<T> s)
Creates Unmodifyable SortedSet wrapper
|
public static final ObjectSet<?> EMPTY
public static <T> ObjectSet<T> empty()
T - the type of elements maintained by this Collectionpublic static <T> ObjectSet<T> synchronizedSet(ObjectSet<T> s)
T - the type of elements maintained by this Collections - the set that should be synchronizedpublic static <T> ObjectSet<T> synchronizedSet(ObjectSet<T> s, java.lang.Object mutex)
T - the type of elements maintained by this Collections - the set that should be synchronizedmutex - controller for accesspublic static <T> ObjectSortedSet<T> synchronizedSet(ObjectSortedSet<T> s)
T - the type of elements maintained by this Collections - the set that should be synchronizedpublic static <T> ObjectSortedSet<T> synchronizedSet(ObjectSortedSet<T> s, java.lang.Object mutex)
T - the type of elements maintained by this Collections - the set that should be synchronizedmutex - controller for accesspublic static <T> ObjectNavigableSet<T> synchronizedSet(ObjectNavigableSet<T> s)
T - the type of elements maintained by this Collections - the set that should be synchronizedpublic static <T> ObjectNavigableSet<T> synchronizedSet(ObjectNavigableSet<T> s, java.lang.Object mutex)
T - the type of elements maintained by this Collections - the set that should be synchronizedmutex - controller for accesspublic static <T> ObjectSet<T> unmodifiable(ObjectSet<T> s)
T - the type of elements maintained by this Collections - set that should be made unmodifyablepublic static <T> ObjectSortedSet<T> unmodifiable(ObjectSortedSet<T> s)
T - the type of elements maintained by this Collections - sortedSet that should be made unmodifyablepublic static <T> ObjectNavigableSet<T> unmodifiable(ObjectNavigableSet<T> s)
T - the type of elements maintained by this Collections - navigableSet that should be made unmodifyablepublic static <T> ObjectSet<T> singletonSet(T element)
T - the type of elements maintained by this Collectionelement - the element that should be converted into a singleton set