public interface HashCollection<E> extends Sized
| Modifier and Type | Interface and Description |
|---|---|
static class |
HashCollection.Analysis<H> |
| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_HASH_FACTOR |
static int |
DEFAULT_HASH_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
HashCollection.Analysis<? extends HashCollection<E>> |
analyze() |
float |
hashDensity() |
int |
hashDistributionRange() |
HashEqualator<? super E> |
hashEquality() |
boolean |
hasVolatileHashElements() |
int |
rehash()
Recalculates the hash value of all entries and reorginazes and optimizes the hash storage accordingly.
|
void |
setHashDensity(float hashDensity)
Sets the hash density (1/density) of this hashing collection if applicable.
|
long |
size() |
static final float DEFAULT_HASH_FACTOR
static final int DEFAULT_HASH_LENGTH
float hashDensity()
void setHashDensity(float hashDensity)
If this procedure is not applicable for the hash collection (e.g. an immutable hash collection), calling this method has no effect.
hashDensity - the new hash density to be set.IllegalArgumentException - if the passed value would have an effect but is less than or equal to 0.HashEqualator<? super E> hashEquality()
HashCollection.Analysis<? extends HashCollection<E>> analyze()
boolean hasVolatileHashElements()
int hashDistributionRange()
int rehash()
Copyright © 2022 MicroStream Software. All rights reserved.