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

Method Summary
 HashConfig getHashConfig()
          Returns the hash config, with which containers constructed by this factory are initialized.
 F withHashConfig(HashConfig config)
          Returns a copy of this factory with hash config set to the given one.
 
Methods inherited from interface com.koloboke.collect.ContainerFactory
getDefaultExpectedSize, withDefaultExpectedSize
 

Method Detail

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