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
|
| Constructor and Description |
|---|
ByteSets() |
| Modifier and Type | Method and Description |
|---|---|
static ByteSet |
empty()
EmptySet getter
|
static ByteSet |
singleton(byte element)
Creates a Singleton set of a given element
|
static ByteNavigableSet |
synchronize(ByteNavigableSet s)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static ByteNavigableSet |
synchronize(ByteNavigableSet s,
java.lang.Object mutex)
Creates a Synchronized NavigableSet while preserving the ITrimmable interface
|
static ByteOrderedSet |
synchronize(ByteOrderedSet s)
Creates a Synchronized OrderedSet while preserving the ITrimmable interface
|
static ByteOrderedSet |
synchronize(ByteOrderedSet s,
java.lang.Object mutex)
Creates a Synchronized OrderedSet while preserving the ITrimmable interface
|
static ByteSet |
synchronize(ByteSet s)
Creates a Synchronized set while preserving the ITrimmable interface
|
static ByteSet |
synchronize(ByteSet s,
java.lang.Object mutex)
Creates a Synchronized set while preserving the ITrimmable interface
|
static ByteSortedSet |
synchronize(ByteSortedSet s)
Creates a Synchronized SortedSet while preserving the ITrimmable interface
|
static ByteSortedSet |
synchronize(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 ByteOrderedSet |
unmodifiable(ByteOrderedSet s)
Creates Unmodifyable OrderedSet wrapper
|
static ByteSet |
unmodifiable(ByteSet s)
Creates Unmodifyable Set wrapper
|
static ByteSortedSet |
unmodifiable(ByteSortedSet s)
Creates Unmodifyable SortedSet wrapper
|
public static ByteSet empty()
public static ByteSet synchronize(ByteSet s)
s - the set that should be synchronizedpublic static ByteSet synchronize(ByteSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static ByteSortedSet synchronize(ByteSortedSet s)
s - the set that should be synchronizedpublic static ByteSortedSet synchronize(ByteSortedSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static ByteOrderedSet synchronize(ByteOrderedSet s)
s - the set that should be synchronizedpublic static ByteOrderedSet synchronize(ByteOrderedSet s, java.lang.Object mutex)
s - the set that should be synchronizedmutex - controller for accesspublic static ByteNavigableSet synchronize(ByteNavigableSet s)
s - the set that should be synchronizedpublic static ByteNavigableSet synchronize(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 unmodifiablepublic static ByteSortedSet unmodifiable(ByteSortedSet s)
s - sortedSet that should be made unmodifiablepublic static ByteOrderedSet unmodifiable(ByteOrderedSet s)
s - OrderedSet that should be made unmodifiablepublic static ByteNavigableSet unmodifiable(ByteNavigableSet s)
s - navigableSet that should be made unmodifiablepublic static ByteSet singleton(byte element)
element - the element that should be converted into a singleton set