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