public class TFloatHashSet extends TFloatHashimplements TFloatSet , Externalizable
_set, consumeFreeSlot, no_entry_value_states, FREE, FULL, REMOVED_autoCompactionFactor, _autoCompactRemovesRemaining, _autoCompactTemporaryDisable, _free, _loadFactor, _maxSize, _size, DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR| Constructor and Description |
|---|
TFloatHashSet()
Creates a new
TFloatHashSet instance with the default capacity and load factor.
|
TFloatHashSet(Collection
Creates a new
TFloatHashSet instance that is a copy of the existing Collection.
|
TFloatHashSet(float[] array)
Creates a new
TFloatHashSet instance containing the elements of
array.
|
TFloatHashSet(int initialCapacity)
Creates a new
TFloatHashSet instance with a prime capacity equal to or greater than
initialCapacity and with the default load factor.
|
TFloatHashSet(int initialCapacity, float load_factor)
Creates a new
TIntHash instance with a prime value at or near the specified capacity and load factor.
|
TFloatHashSet(int initial_capacity, float load_factor, float no_entry_value)
Creates a new
TFloatHashSet instance with a prime capacity equal to or greater than
initial_capacity and with the specified load factor.
|
TFloatHashSet(TFloatCollection
Creates a new
TFloatHashSet instance that is a copy of the existing set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(float val)
|
boolean |
addAll(Collection
|
boolean |
addAll(float[] array)
|
boolean |
addAll(TFloatCollection
|
void |
clear()
|
boolean |
containsAll(Collection
|
boolean |
containsAll(float[] array)
|
boolean |
containsAll(TFloatCollection
|
boolean |
equals(Object
|
int |
hashCode()
|
TFloatIterator |
iterator()
|
void |
readExternal(ObjectInput
|
protected void |
rehash(int newCapacity)
|
boolean |
remove(float val)
|
boolean |
removeAll(Collection
|
boolean |
removeAll(float[] array)
|
boolean |
removeAll(TFloatCollection
|
boolean |
retainAll(Collection
|
boolean |
retainAll(float[] array)
|
boolean |
retainAll(TFloatCollection
|
float[] |
toArray()
|
float[] |
toArray(float[] dest)
|
String |
toString()
|
void |
writeExternal(ObjectOutput
|
contains, forEach, getNoEntryValue, index, insertKey, removeAt, setUpcapacitycalculateGrownCapacity, compact, computeMaxSize, computeNextAutoCompactionAmount, ensureCapacity, getAutoCompactionFactor, isEmpty, postInsertHook, reenableAutoCompaction, setAutoCompactionFactor, size, tempDisableAutoCompaction, trimToSizepublic TFloatHashSet()
TFloatHashSet instance with the default capacity and load factor.
public TFloatHashSet(int initialCapacity)
TFloatHashSet instance with a prime capacity equal to or greater than
initialCapacity and with the default load factor.
initialCapacity - an
int value
public TFloatHashSet(int initialCapacity,
float load_factor)
TIntHash instance with a prime value at or near the specified capacity and load factor.
initialCapacity - used to find a prime capacity for the table.
load_factor - used to calculate the threshold over which rehashing takes place.
public TFloatHashSet(int initial_capacity,
float load_factor,
float no_entry_value)
TFloatHashSet instance with a prime capacity equal to or greater than
initial_capacity and with the specified load factor.
initial_capacity - an
int value
load_factor - a
float value
no_entry_value - a
float value that represents null.
public TFloatHashSet(Collection<? extends Float > collection)
TFloatHashSet instance that is a copy of the existing Collection.
collection - a
Collection that will be duplicated.
public TFloatHashSet(TFloatCollectioncollection)
TFloatHashSet instance that is a copy of the existing set.
collection - a
TFloatSet that will be duplicated.
public TFloatHashSet(float[] array)
TFloatHashSet instance containing the elements of
array.
array - an array of
float primitives
public TFloatIteratoriterator()
public float[] toArray()
public float[] toArray(float[] dest)
public boolean add(float val)
public boolean remove(float val)
public boolean containsAll(Collection<?> collection)
public boolean containsAll(TFloatCollectioncollection)
public boolean containsAll(float[] array)
public boolean addAll(Collection<? extends Float > collection)
public boolean addAll(TFloatCollectioncollection)
public boolean addAll(float[] array)
public boolean retainAll(Collection<?> collection)
public boolean retainAll(TFloatCollectioncollection)
public boolean retainAll(float[] array)
public boolean removeAll(Collection<?> collection)
public boolean removeAll(TFloatCollectioncollection)
public boolean removeAll(float[] array)
public void clear()
protected void rehash(int newCapacity)
public boolean equals(Objectother)
public int hashCode()
public StringtoString()
public void writeExternal(ObjectOutputout) throws IOException
writeExternal in interface
Externalizable
writeExternal in class
THash
IOException
public void readExternal(ObjectInputin) throws IOException , ClassNotFoundException
readExternal in interface
Externalizable
readExternal in class
THash
IOException
ClassNotFoundException