Package | Description |
---|---|
com.koloboke.collect.hash |
Contains basic interfaces and commonly used classes related to containers, based on hash tables.
|
Modifier and Type | Method and Description |
---|---|
static HashConfig |
HashConfig.fromLoads(double minLoad,
double targetLoad,
double maxLoad)
Returns a new hash config with the given loads and the growth factor set to
maxLoad / minLoad . |
static HashConfig |
HashConfig.getDefault()
Returns a hash config with 0.(3) min load, 0.5 target load, 0.(6) max load, 2.0 growth factor
and
null shrink condition. |
HashConfig |
HashContainerFactory.getHashConfig()
Returns the hash config, with which containers constructed by this factory are initialized.
|
HashConfig |
HashContainer.hashConfig()
Returns the hash config which holds all "magic" parameters of this hash container:
load and growth factors.
|
HashConfig |
HashConfig.withGrowthFactor(double growthFactor)
Returns a copy of this hash config with the growth factor set to the given value.
|
HashConfig |
HashConfig.withMaxLoad(double maxLoad)
Returns a copy of this hash config with the max load set to the given value.
|
HashConfig |
HashConfig.withMinLoad(double minLoad)
Returns a copy of this hash config with the min load set to the given value.
|
HashConfig |
HashConfig.withShrinkCondition(Predicate<HashContainer> condition)
Returns a copy of this hash config with the shrink condition set to the given predicate.
|
HashConfig |
HashConfig.withTargetLoad(double targetLoad)
Returns a copy of this hash config with the target load set to the given value.
|
Modifier and Type | Method and Description |
---|---|
F |
HashContainerFactory.withHashConfig(HashConfig config)
Returns a copy of this factory with hash config set to the given one.
|