public class TFloatHashSetDecorator extends AbstractSet<Float > implements Set <Float >
| Modifier and Type | Field and Description |
|---|---|
protected TFloatHashSet |
_set
the wrapped primitive set
|
| Constructor and Description |
|---|
TFloatHashSetDecorator(TFloatHashSet
Creates a wrapper that decorates the specified primitive set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Float
Inserts a value into the set.
|
void |
clear()
Empties the set.
|
TFloatHashSetDecorator |
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.
|
TFloatHashSet |
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 float |
unwrap(Object
Unwraps a value
|
protected Float |
wrap(float 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 TFloatHashSet_set
public TFloatHashSetDecorator(TFloatHashSetset)
public TFloatHashSetgetSet()
public TFloatHashSetDecoratorclone()
public boolean add(Floatvalue)
add in interface
Collection<Float>
add in interface
Set<Float>
add in class
AbstractCollection<Float>
value - true if the set was modified by the insertion
public boolean equals(Objectother)
equals in interface
Collection<Float>
equals in interface
Set<Float>
equals in class
AbstractSet<Float>
other - an
Object value
public void clear()
public boolean remove(Objectvalue)
remove in interface
Collection<Float>
remove in interface
Set<Float>
remove in class
AbstractCollection<Float>
value - an
Object value
public int size()
size in interface
Collection<Float>
size in interface
Set<Float>
size in class
AbstractCollection<Float>
public boolean isEmpty()
isEmpty in interface
Collection<Float>
isEmpty in interface
Set<Float>
isEmpty in class
AbstractCollection<Float>
protected Floatwrap(float k)
k - value in the underlying set
protected float unwrap(Objectvalue)
value - wrapped value