public class TDoubleHashSet extends TDoubleHashimplements TDoubleSet , 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 |
|---|
TDoubleHashSet()
Creates a new
TDoubleHashSet instance with the default capacity and load factor.
|
TDoubleHashSet(Collection
Creates a new
TDoubleHashSet instance that is a copy of the existing Collection.
|
TDoubleHashSet(double[] array)
Creates a new
TDoubleHashSet instance containing the elements of
array.
|
TDoubleHashSet(int initialCapacity)
Creates a new
TDoubleHashSet instance with a prime capacity equal to or greater than
initialCapacity and with the default load factor.
|
TDoubleHashSet(int initialCapacity, float load_factor)
Creates a new
TIntHash instance with a prime value at or near the specified capacity and load factor.
|
TDoubleHashSet(int initial_capacity, float load_factor, double no_entry_value)
Creates a new
TDoubleHashSet instance with a prime capacity equal to or greater than
initial_capacity and with the specified load factor.
|
TDoubleHashSet(TDoubleCollection
Creates a new
TDoubleHashSet instance that is a copy of the existing set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double val)
|
boolean |
addAll(Collection
|
boolean |
addAll(double[] array)
|
boolean |
addAll(TDoubleCollection
|
void |
clear()
|
boolean |
containsAll(Collection
|
boolean |
containsAll(double[] array)
|
boolean |
containsAll(TDoubleCollection
|
boolean |
equals(Object
|
int |
hashCode()
|
TDoubleIterator |
iterator()
|
void |
readExternal(ObjectInput
|
protected void |
rehash(int newCapacity)
|
boolean |
remove(double val)
|
boolean |
removeAll(Collection
|
boolean |
removeAll(double[] array)
|
boolean |
removeAll(TDoubleCollection
|
boolean |
retainAll(Collection
|
boolean |
retainAll(double[] array)
|
boolean |
retainAll(TDoubleCollection
|
double[] |
toArray()
|
double[] |
toArray(double[] dest)
|
String |
toString()
|
void |
writeExternal(ObjectOutput
|
contains, forEach, getNoEntryValue, index, insertKey, removeAt, setUpcapacitycalculateGrownCapacity, compact, computeMaxSize, computeNextAutoCompactionAmount, ensureCapacity, fastCeil, getAutoCompactionFactor, isEmpty, postInsertHook, reenableAutoCompaction, saturatedCast, setAutoCompactionFactor, size, tempDisableAutoCompaction, trimToSizeclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontains, forEach, getNoEntryValue, isEmpty, sizepublic TDoubleHashSet()
TDoubleHashSet instance with the default capacity and load factor.
public TDoubleHashSet(int initialCapacity)
TDoubleHashSet instance with a prime capacity equal to or greater than
initialCapacity and with the default load factor.
initialCapacity - an
int value
public TDoubleHashSet(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 TDoubleHashSet(int initial_capacity,
float load_factor,
double no_entry_value)
TDoubleHashSet 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
double value that represents null.
public TDoubleHashSet(Collection<? extends Double > collection)
TDoubleHashSet instance that is a copy of the existing Collection.
collection - a
Collection that will be duplicated.
public TDoubleHashSet(TDoubleCollectioncollection)
TDoubleHashSet instance that is a copy of the existing set.
collection - a
TDoubleSet that will be duplicated.
public TDoubleHashSet(double[] array)
TDoubleHashSet instance containing the elements of
array.
array - an array of
double primitives
public TDoubleIteratoriterator()
public double[] toArray()
public double[] toArray(double[] dest)
public boolean add(double val)
public boolean remove(double val)
public boolean containsAll(Collection<?> collection)
public boolean containsAll(TDoubleCollectioncollection)
public boolean containsAll(double[] array)
public boolean addAll(Collection<? extends Double > collection)
public boolean addAll(TDoubleCollectioncollection)
public boolean addAll(double[] array)
public boolean retainAll(Collection<?> collection)
public boolean retainAll(TDoubleCollectioncollection)
public boolean retainAll(double[] array)
public boolean removeAll(Collection<?> collection)
public boolean removeAll(TDoubleCollectioncollection)
public boolean removeAll(double[] 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