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