com.koloboke.collect.hash
Interface HashContainerFactory<F extends HashContainerFactory<F>>
- Type Parameters:
F
- the concrete factory type which extends this interface
- All Superinterfaces:
- ContainerFactory<F>
- All Known Subinterfaces:
- ByteHashFactory<F>, CharHashFactory<F>, HashByteByteMapFactory, HashByteCharMapFactory, HashByteDoubleMapFactory, HashByteFloatMapFactory, HashByteIntMapFactory, HashByteLongMapFactory, HashByteObjMapFactory<V>, HashByteSetFactory, HashByteShortMapFactory, HashCharByteMapFactory, HashCharCharMapFactory, HashCharDoubleMapFactory, HashCharFloatMapFactory, HashCharIntMapFactory, HashCharLongMapFactory, HashCharObjMapFactory<V>, HashCharSetFactory, HashCharShortMapFactory, HashDoubleByteMapFactory, HashDoubleCharMapFactory, HashDoubleDoubleMapFactory, HashDoubleFloatMapFactory, HashDoubleIntMapFactory, HashDoubleLongMapFactory, HashDoubleObjMapFactory<V>, HashDoubleSetFactory, HashDoubleShortMapFactory, HashFloatByteMapFactory, HashFloatCharMapFactory, HashFloatDoubleMapFactory, HashFloatFloatMapFactory, HashFloatIntMapFactory, HashFloatLongMapFactory, HashFloatObjMapFactory<V>, HashFloatSetFactory, HashFloatShortMapFactory, HashIntByteMapFactory, HashIntCharMapFactory, HashIntDoubleMapFactory, HashIntFloatMapFactory, HashIntIntMapFactory, HashIntLongMapFactory, HashIntObjMapFactory<V>, HashIntSetFactory, HashIntShortMapFactory, HashLongByteMapFactory, HashLongCharMapFactory, HashLongDoubleMapFactory, HashLongFloatMapFactory, HashLongIntMapFactory, HashLongLongMapFactory, HashLongObjMapFactory<V>, HashLongSetFactory, HashLongShortMapFactory, HashObjByteMapFactory<K>, HashObjCharMapFactory<K>, HashObjDoubleMapFactory<K>, HashObjFloatMapFactory<K>, HashObjIntMapFactory<K>, HashObjLongMapFactory<K>, HashObjObjMapFactory<K,V>, HashObjSetFactory<E>, HashObjShortMapFactory<K>, HashShortByteMapFactory, HashShortCharMapFactory, HashShortDoubleMapFactory, HashShortFloatMapFactory, HashShortIntMapFactory, HashShortLongMapFactory, HashShortObjMapFactory<V>, HashShortSetFactory, HashShortShortMapFactory, IntHashFactory<F>, LongHashFactory<F>, ObjHashFactory<F>, ShortHashFactory<F>
public interface HashContainerFactory<F extends HashContainerFactory<F>>
- extends ContainerFactory<F>
Common configuration for factories of hash containers.
Configurations from this interface, hash config and default expected size, don't affect
application semantics in any way, only performance and memory footprint characteristics.
- See Also:
HashContainer
getHashConfig
@Nonnull
HashConfig getHashConfig()
- Returns the hash config, with which containers constructed by this factory are initialized.
Default hash config is HashConfig.getDefault()
.
- Returns:
- the hash config of this factory
withHashConfig
@Nonnull
F withHashConfig(@Nonnull
HashConfig config)
- Returns a copy of this factory with hash config set to the given one.
- Parameters:
config
- the new hash config
- Returns:
- a copy of this factory with hash config set to the given one