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