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