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
|
| Modifier and Type | Field and Description |
|---|---|
static CharSet |
EMPTY
Empty Set Variable
|
| Constructor and Description |
|---|
CharSets() |
| Modifier and Type | Method and Description |
|---|---|
static CharSet |
empty()
EmptySet getter
|
static CharSet |
singletonSet(char element)
Creates a Singleton set of a given element
|
static CharNavigableSet |
synchronizedSet(CharNavigableSet s)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static CharNavigableSet |
synchronizedSet(CharNavigableSet s,
java.lang.Object mutex)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static CharSet |
synchronizedSet(CharSet s)
Creates a Synchronized set while preserving the ITrimmable interface
|
static CharSet |
synchronizedSet(CharSet s,
java.lang.Object mutex)
Creates a Synchronized set while preserving the ITrimmable interface
|
static CharSortedSet |
synchronizedSet(CharSortedSet s)
Creates a Synchronized SortedSet while preserving the ITrimmable interface
|
static CharSortedSet |
synchronizedSet(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 CharSet |
unmodifiable(CharSet s)
Creates Unmodifyable Set wrapper
|
static CharSortedSet |
unmodifiable(CharSortedSet s)
Creates Unmodifyable SortedSet wrapper
|
public static final CharSet EMPTY
public static CharSet empty()
public static CharSet synchronizedSet(CharSet s)
s - the set that should be synchronizedpublic static CharSet synchronizedSet(CharSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static CharSortedSet synchronizedSet(CharSortedSet s)
s - the set that should be synchronizedpublic static CharSortedSet synchronizedSet(CharSortedSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static CharNavigableSet synchronizedSet(CharNavigableSet s)
s - the set that should be synchronizedpublic static CharNavigableSet synchronizedSet(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 unmodifyablepublic static CharSortedSet unmodifiable(CharSortedSet s)
s - sortedSet that should be made unmodifyablepublic static CharNavigableSet unmodifiable(CharNavigableSet s)
s - navigableSet that should be made unmodifyablepublic static CharSet singletonSet(char element)
element - the element that should be converted into a singleton set