public class CharSets
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CharSets.UnmodifiableSet
Unmodifyable Set wrapper that helps is used with unmodifyableSet function
|
| Constructor and Description |
|---|
CharSets() |
| Modifier and Type | Method and Description |
|---|---|
static CharSet |
empty()
EmptySet getter
|
static CharSet |
singleton(char element)
Creates a Singleton set of a given element
|
static CharNavigableSet |
synchronize(CharNavigableSet s)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static CharNavigableSet |
synchronize(CharNavigableSet s,
java.lang.Object mutex)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static CharOrderedSet |
synchronize(CharOrderedSet s)
Creates a Synchronized OrderedSet while preserving the ITrimmable interface
|
static CharOrderedSet |
synchronize(CharOrderedSet s,
java.lang.Object mutex)
Creates a Synchronized OrderedSet while preserving the ITrimmable interface
|
static CharSet |
synchronize(CharSet s)
Creates a Synchronized set while preserving the ITrimmable interface
|
static CharSet |
synchronize(CharSet s,
java.lang.Object mutex)
Creates a Synchronized set while preserving the ITrimmable interface
|
static CharSortedSet |
synchronize(CharSortedSet s)
Creates a Synchronized SortedSet while preserving the ITrimmable interface
|
static CharSortedSet |
synchronize(CharSortedSet s,
java.lang.Object mutex)
Creates a Synchronized SortedSet while preserving the ITrimmable interface
|
static CharNavigableSet |
unmodifiable(CharNavigableSet s)
Creates Unmodifyable NavigableSet wrapper
|
static CharOrderedSet |
unmodifiable(CharOrderedSet s)
Creates Unmodifyable OrderedSet wrapper
|
static CharSet |
unmodifiable(CharSet s)
Creates Unmodifyable Set wrapper
|
static CharSortedSet |
unmodifiable(CharSortedSet s)
Creates Unmodifyable SortedSet wrapper
|
public static CharSet empty()
public static CharSet synchronize(CharSet s)
s - the set that should be synchronizedpublic static CharSet synchronize(CharSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static CharSortedSet synchronize(CharSortedSet s)
s - the set that should be synchronizedpublic static CharSortedSet synchronize(CharSortedSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static CharOrderedSet synchronize(CharOrderedSet s)
s - the set that should be synchronizedpublic static CharOrderedSet synchronize(CharOrderedSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static CharNavigableSet synchronize(CharNavigableSet s)
s - the set that should be synchronizedpublic static CharNavigableSet synchronize(CharNavigableSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static CharSet unmodifiable(CharSet s)
s - set that should be made unmodifiablepublic static CharSortedSet unmodifiable(CharSortedSet s)
s - sortedSet that should be made unmodifiablepublic static CharOrderedSet unmodifiable(CharOrderedSet s)
s - OrderedSet that should be made unmodifiablepublic static CharNavigableSet unmodifiable(CharNavigableSet s)
s - navigableSet that should be made unmodifiablepublic static CharSet singleton(char element)
element - the element that should be converted into a singleton set