public abstract class TCustomObjectHash<T> extends TObjectHash<T>
| Modifier and Type | Field and Description |
|---|---|
protected HashingStrategy |
strategy
|
_set, consumeFreeSlot, FREE, REMOVED_autoCompactionFactor, _autoCompactRemovesRemaining, _autoCompactTemporaryDisable, _free, _loadFactor, _maxSize, _size, DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR| Constructor and Description |
|---|
TCustomObjectHash()
FOR EXTERNALIZATION ONLY!!!
|
TCustomObjectHash(HashingStrategy
Creates a new
TManualObjectHash instance with the default capacity and load factor.
|
TCustomObjectHash(HashingStrategy
Creates a new
TManualObjectHash instance whose capacity is the next highest prime above
initialCapacity + 1 unless that value is already prime.
|
TCustomObjectHash(HashingStrategy
Creates a new
TManualObjectHash instance with a prime value at or near the specified capacity and load factor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
equals(Object
|
protected int |
hash(Object
|
void |
readExternal(ObjectInput
|
void |
writeExternal(ObjectOutput
|
buildObjectContractViolation, capacity, contains, dumpExtraInfo, forEach, index, insertionIndex, insertKey, objectInfo, removeAt, reportPotentialConcurrentMod, setUp, throwObjectContractViolation, throwObjectContractViolationcalculateGrownCapacity, clear, compact, computeMaxSize, computeNextAutoCompactionAmount, ensureCapacity, getAutoCompactionFactor, isEmpty, postInsertHook, reenableAutoCompaction, rehash, setAutoCompactionFactor, size, tempDisableAutoCompaction, trimToSizeprotected HashingStrategy<? super T> strategy
public TCustomObjectHash()
public TCustomObjectHash(HashingStrategy<? super T> strategy)
TManualObjectHash instance with the default capacity and load factor.
public TCustomObjectHash(HashingStrategy<? super T> strategy, int initialCapacity)
TManualObjectHash instance whose capacity is the next highest prime above
initialCapacity + 1 unless that value is already prime.
initialCapacity - an
int value
public TCustomObjectHash(HashingStrategy<? super T> strategy, int initialCapacity, float loadFactor)
TManualObjectHash instance with a prime value at or near the specified capacity and load factor.
initialCapacity - used to find a prime capacity for the table.
loadFactor - used to calculate the threshold over which rehashing takes place.
protected int hash(Objectobj)
public void writeExternal(ObjectOutputout) throws IOException
writeExternal in interface
Externalizable
writeExternal in class
TObjectHash<T>
IOException
public void readExternal(ObjectInputin) throws IOException , ClassNotFoundException
readExternal in interface
Externalizable
readExternal in class
TObjectHash<T>
IOException
ClassNotFoundException