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