public abstract class TCustomObjectHash<T> extends TObjectHash<T>
| Modifier and Type | Field and Description |
|---|---|
protected HashingStrategy<? super T> |
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<? super T> strategy)
Creates a new
TManualObjectHash instance with the
default capacity and load factor. |
TCustomObjectHash(HashingStrategy<? super T> strategy,
int initialCapacity)
Creates a new
TManualObjectHash instance whose capacity
is the next highest prime above initialCapacity + 1
unless that value is already prime. |
TCustomObjectHash(HashingStrategy<? super T> strategy,
int initialCapacity,
float loadFactor)
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(java.lang.Object one,
java.lang.Object two) |
protected int |
hash(java.lang.Object obj) |
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
buildObjectContractViolation, capacity, contains, dumpExtraInfo, forEach, index, insertionIndex, insertKey, objectInfo, removeAt, reportPotentialConcurrentMod, setUp, throwObjectContractViolation, throwObjectContractViolationcalculateGrownCapacity, clear, compact, computeMaxSize, computeNextAutoCompactionAmount, ensureCapacity, fastCeil, getAutoCompactionFactor, isEmpty, postInsertHook, reenableAutoCompaction, rehash, saturatedCast, 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 valuepublic 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(java.lang.Object obj)
hash in class TObjectHash<T>protected boolean equals(java.lang.Object one,
java.lang.Object two)
equals in class TObjectHash<T>public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class TObjectHash<T>java.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class TObjectHash<T>java.io.IOExceptionjava.lang.ClassNotFoundException