public class TIntHashSet extends TIntHashimplements TIntSet , 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 |
|---|
TIntHashSet()
Creates a new
TIntHashSet instance with the default capacity and load factor.
|
TIntHashSet(Collection
Creates a new
TIntHashSet instance that is a copy of the existing Collection.
|
TIntHashSet(int initialCapacity)
Creates a new
TIntHashSet instance with a prime capacity equal to or greater than
initialCapacity and with the default load factor.
|
TIntHashSet(int[] array)
Creates a new
TIntHashSet instance containing the elements of
array.
|
TIntHashSet(int initialCapacity, float load_factor)
Creates a new
TIntHash instance with a prime value at or near the specified capacity and load factor.
|
TIntHashSet(int initial_capacity, float load_factor, int no_entry_value)
Creates a new
TIntHashSet instance with a prime capacity equal to or greater than
initial_capacity and with the specified load factor.
|
TIntHashSet(TIntCollection
Creates a new
TIntHashSet instance that is a copy of the existing set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int val)
|
boolean |
addAll(Collection
|
boolean |
addAll(int[] array)
|
boolean |
addAll(TIntCollection
|
void |
clear()
|
boolean |
containsAll(Collection
|
boolean |
containsAll(int[] array)
|
boolean |
containsAll(TIntCollection
|
boolean |
equals(Object
|
int |
hashCode()
|
TIntIterator |
iterator()
|
void |
readExternal(ObjectInput
|
protected void |
rehash(int newCapacity)
|
boolean |
remove(int val)
|
boolean |
removeAll(Collection
|
boolean |
removeAll(int[] array)
|
boolean |
removeAll(TIntCollection
|
boolean |
retainAll(Collection
|
boolean |
retainAll(int[] array)
|
boolean |
retainAll(TIntCollection
|
int[] |
toArray()
|
int[] |
toArray(int[] 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 TIntHashSet()
TIntHashSet instance with the default capacity and load factor.
public TIntHashSet(int initialCapacity)
TIntHashSet instance with a prime capacity equal to or greater than
initialCapacity and with the default load factor.
initialCapacity - an
int value
public TIntHashSet(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 TIntHashSet(int initial_capacity,
float load_factor,
int no_entry_value)
TIntHashSet 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
int value that represents null.
public TIntHashSet(Collection<? extends Integer > collection)
TIntHashSet instance that is a copy of the existing Collection.
collection - a
Collection that will be duplicated.
public TIntHashSet(TIntCollectioncollection)
TIntHashSet instance that is a copy of the existing set.
collection - a
TIntSet that will be duplicated.
public TIntHashSet(int[] array)
TIntHashSet instance containing the elements of
array.
array - an array of
int primitives
public TIntIteratoriterator()
public int[] toArray()
public int[] toArray(int[] dest)
public boolean add(int val)
public boolean remove(int val)
public boolean containsAll(Collection<?> collection)
public boolean containsAll(TIntCollectioncollection)
public boolean containsAll(int[] array)
public boolean addAll(Collection<? extends Integer > collection)
public boolean addAll(TIntCollectioncollection)
public boolean addAll(int[] array)
public boolean retainAll(Collection<?> collection)
public boolean retainAll(TIntCollectioncollection)
public boolean retainAll(int[] array)
public boolean removeAll(Collection<?> collection)
public boolean removeAll(TIntCollectioncollection)
public boolean removeAll(int[] 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