public class TByteHashSetDecorator extends AbstractSet<Byte > implements Set <Byte >
| Modifier and Type | Field and Description |
|---|---|
protected TByteHashSet |
_set
the wrapped primitive set
|
| Constructor and Description |
|---|
TByteHashSetDecorator(TByteHashSet
Creates a wrapper that decorates the specified primitive set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Byte
Inserts a value into the set.
|
void |
clear()
Empties the set.
|
TByteHashSetDecorator |
clone()
Clones the underlying trove collection and returns the clone wrapped in a new decorator instance.
|
boolean |
equals(Object
Compares this set with another set for equality of their stored entries.
|
TByteHashSet |
getSet()
Returns a reference to the set wrapped by this decorator.
|
boolean |
isEmpty()
Indicates whether set has any entries.
|
Iterator |
iterator()
Creates an iterator over the values of the set.
|
boolean |
remove(Object
Deletes a value from the set.
|
int |
size()
Returns the number of entries in the set.
|
protected byte |
unwrap(Object
Unwraps a value
|
protected Byte |
wrap(byte k)
Wraps a value
|
hashCode, removeAlladdAll, contains, containsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, hashCode, removeAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streamprotected TByteHashSet_set
public TByteHashSetDecorator(TByteHashSetset)
public TByteHashSetgetSet()
public TByteHashSetDecoratorclone()
public boolean add(Bytevalue)
add in interface
Collection<Byte>
add in interface
Set<Byte>
add in class
AbstractCollection<Byte>
value - true if the set was modified by the insertion
public boolean equals(Objectother)
equals in interface
Collection<Byte>
equals in interface
Set<Byte>
equals in class
AbstractSet<Byte>
other - an
Object value
public void clear()
public boolean remove(Objectvalue)
remove in interface
Collection<Byte>
remove in interface
Set<Byte>
remove in class
AbstractCollection<Byte>
value - an
Object value
public int size()
size in interface
Collection<Byte>
size in interface
Set<Byte>
size in class
AbstractCollection<Byte>
public boolean isEmpty()
isEmpty in interface
Collection<Byte>
isEmpty in interface
Set<Byte>
isEmpty in class
AbstractCollection<Byte>
protected Bytewrap(byte k)
k - value in the underlying set
protected byte unwrap(Objectvalue)
value - wrapped value