public class TIntHashSetDecorator extends AbstractSet<Integer > implements Set <Integer >
| Modifier and Type | Field and Description |
|---|---|
protected TIntHashSet |
_set
the wrapped primitive set
|
| Constructor and Description |
|---|
TIntHashSetDecorator(TIntHashSet
Creates a wrapper that decorates the specified primitive set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Integer
Inserts a value into the set.
|
void |
clear()
Empties the set.
|
TIntHashSetDecorator |
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.
|
TIntHashSet |
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 int |
unwrap(Object
Unwraps a value
|
protected Integer |
wrap(int 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 TIntHashSet_set
public TIntHashSetDecorator(TIntHashSetset)
public TIntHashSetgetSet()
public TIntHashSetDecoratorclone()
public boolean add(Integervalue)
add in interface
Collection<Integer>
add in interface
Set<Integer>
add in class
AbstractCollection<Integer>
value - true if the set was modified by the insertion
public boolean equals(Objectother)
equals in interface
Collection<Integer>
equals in interface
Set<Integer>
equals in class
AbstractSet<Integer>
other - an
Object value
public void clear()
public boolean remove(Objectvalue)
remove in interface
Collection<Integer>
remove in interface
Set<Integer>
remove in class
AbstractCollection<Integer>
value - an
Object value
public int size()
size in interface
Collection<Integer>
size in interface
Set<Integer>
size in class
AbstractCollection<Integer>
public boolean isEmpty()
isEmpty in interface
Collection<Integer>
isEmpty in interface
Set<Integer>
isEmpty in class
AbstractCollection<Integer>
protected Integerwrap(int k)
k - value in the underlying set
protected int unwrap(Objectvalue)
value - wrapped value