public class TFloatHashSetDecorator
extends java.util.AbstractSet<java.lang.Float>
implements java.util.Set<java.lang.Float>
| Modifier and Type | Field and Description |
|---|---|
protected TFloatHashSet |
_set
the wrapped primitive set
|
| Constructor and Description |
|---|
TFloatHashSetDecorator(TFloatHashSet set)
Creates a wrapper that decorates the specified primitive set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Float value)
Inserts a value into the set.
|
void |
clear()
Empties the set.
|
boolean |
equals(java.lang.Object other)
Compares this set with another set for equality of their stored
entries.
|
boolean |
isEmpty()
Indicates whether set has any entries.
|
java.util.Iterator<java.lang.Float> |
iterator()
Creates an iterator over the values of the set.
|
boolean |
remove(java.lang.Object value)
Deletes a value from the set.
|
int |
size()
Returns the number of entries in the set.
|
protected float |
unwrap(java.lang.Object value)
Unwraps a value
|
protected java.lang.Float |
wrap(float k)
Wraps a value
|
addAll, contains, containsAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected final TFloatHashSet _set
public TFloatHashSetDecorator(TFloatHashSet set)
public boolean add(java.lang.Float value)
add in interface java.util.Collection<java.lang.Float>add in interface java.util.Set<java.lang.Float>add in class java.util.AbstractCollection<java.lang.Float>value - true if the set was modified by the insertionpublic boolean equals(java.lang.Object other)
equals in interface java.util.Collection<java.lang.Float>equals in interface java.util.Set<java.lang.Float>equals in class java.util.AbstractSet<java.lang.Float>other - an Object valuepublic void clear()
clear in interface java.util.Collection<java.lang.Float>clear in interface java.util.Set<java.lang.Float>clear in class java.util.AbstractCollection<java.lang.Float>public boolean remove(java.lang.Object value)
remove in interface java.util.Collection<java.lang.Float>remove in interface java.util.Set<java.lang.Float>remove in class java.util.AbstractCollection<java.lang.Float>value - an Object valuepublic java.util.Iterator<java.lang.Float> iterator()
iterator in interface java.lang.Iterable<java.lang.Float>iterator in interface java.util.Collection<java.lang.Float>iterator in interface java.util.Set<java.lang.Float>iterator in class java.util.AbstractCollection<java.lang.Float>public int size()
size in interface java.util.Collection<java.lang.Float>size in interface java.util.Set<java.lang.Float>size in class java.util.AbstractCollection<java.lang.Float>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Float>isEmpty in interface java.util.Set<java.lang.Float>isEmpty in class java.util.AbstractCollection<java.lang.Float>protected java.lang.Float wrap(float k)
k - value in the underlying setprotected float unwrap(java.lang.Object value)
value - wrapped value