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
|
| Constructor and Description |
|---|
ObjectSets() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ObjectSet<T> |
empty()
EmptySet getter
|
static <T> ObjectSet<T> |
singleton(T element)
Creates a Singleton set of a given element
|
static <T> ObjectNavigableSet<T> |
synchronize(ObjectNavigableSet<T> s)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static <T> ObjectNavigableSet<T> |
synchronize(ObjectNavigableSet<T> s,
java.lang.Object mutex)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static <T> ObjectOrderedSet<T> |
synchronize(ObjectOrderedSet<T> s)
Creates a Synchronized OrderedSet while preserving the ITrimmable interface
|
static <T> ObjectOrderedSet<T> |
synchronize(ObjectOrderedSet<T> s,
java.lang.Object mutex)
Creates a Synchronized OrderedSet while preserving the ITrimmable interface
|
static <T> ObjectSet<T> |
synchronize(ObjectSet<T> s)
Creates a Synchronized set while preserving the ITrimmable interface
|
static <T> ObjectSet<T> |
synchronize(ObjectSet<T> s,
java.lang.Object mutex)
Creates a Synchronized set while preserving the ITrimmable interface
|
static <T> ObjectSortedSet<T> |
synchronize(ObjectSortedSet<T> s)
Creates a Synchronized SortedSet while preserving the ITrimmable interface
|
static <T> ObjectSortedSet<T> |
synchronize(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> ObjectOrderedSet<T> |
unmodifiable(ObjectOrderedSet<T> s)
Creates Unmodifyable OrderedSet 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 <T> ObjectSet<T> empty()
T - the keyType of elements maintained by this Collectionpublic static <T> ObjectSet<T> synchronize(ObjectSet<T> s)
T - the keyType of elements maintained by this Collections - the set that should be synchronizedpublic static <T> ObjectSet<T> synchronize(ObjectSet<T> s, java.lang.Object mutex)
T - the keyType of elements maintained by this Collections - the set that should be synchronizedmutex - controller for accesspublic static <T> ObjectSortedSet<T> synchronize(ObjectSortedSet<T> s)
T - the keyType of elements maintained by this Collections - the set that should be synchronizedpublic static <T> ObjectSortedSet<T> synchronize(ObjectSortedSet<T> s, java.lang.Object mutex)
T - the keyType of elements maintained by this Collections - the set that should be synchronizedmutex - controller for accesspublic static <T> ObjectOrderedSet<T> synchronize(ObjectOrderedSet<T> s)
T - the keyType of elements maintained by this Collections - the set that should be synchronizedpublic static <T> ObjectOrderedSet<T> synchronize(ObjectOrderedSet<T> s, java.lang.Object mutex)
T - the keyType of elements maintained by this Collections - the set that should be synchronizedmutex - controller for accesspublic static <T> ObjectNavigableSet<T> synchronize(ObjectNavigableSet<T> s)
T - the keyType of elements maintained by this Collections - the set that should be synchronizedpublic static <T> ObjectNavigableSet<T> synchronize(ObjectNavigableSet<T> s, java.lang.Object mutex)
T - the keyType 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 keyType of elements maintained by this Collections - set that should be made unmodifiablepublic static <T> ObjectSortedSet<T> unmodifiable(ObjectSortedSet<T> s)
T - the keyType of elements maintained by this Collections - sortedSet that should be made unmodifiablepublic static <T> ObjectOrderedSet<T> unmodifiable(ObjectOrderedSet<T> s)
T - the keyType of elements maintained by this Collections - OrderedSet that should be made unmodifiablepublic static <T> ObjectNavigableSet<T> unmodifiable(ObjectNavigableSet<T> s)
T - the keyType of elements maintained by this Collections - navigableSet that should be made unmodifiablepublic static <T> ObjectSet<T> singleton(T element)
T - the keyType of elements maintained by this Collectionelement - the element that should be converted into a singleton set