net.openhft.koloboke.collect
Interface ContainerFactory<F extends ContainerFactory<F>>
- Type Parameters:
F - the concrete factory type which extends this interface
- All Known Subinterfaces:
- ByteByteMapFactory<F>, ByteCharMapFactory<F>, ByteDoubleMapFactory<F>, ByteFloatMapFactory<F>, ByteHashFactory<F>, ByteIntMapFactory<F>, ByteLongMapFactory<F>, ByteObjMapFactory<V,F>, ByteSetFactory<F>, ByteShortMapFactory<F>, CharByteMapFactory<F>, CharCharMapFactory<F>, CharDoubleMapFactory<F>, CharFloatMapFactory<F>, CharHashFactory<F>, CharIntMapFactory<F>, CharLongMapFactory<F>, CharObjMapFactory<V,F>, CharSetFactory<F>, CharShortMapFactory<F>, DoubleByteMapFactory<F>, DoubleCharMapFactory<F>, DoubleDoubleMapFactory<F>, DoubleFloatMapFactory<F>, DoubleIntMapFactory<F>, DoubleLongMapFactory<F>, DoubleObjMapFactory<V,F>, DoubleSetFactory<F>, DoubleShortMapFactory<F>, FloatByteMapFactory<F>, FloatCharMapFactory<F>, FloatDoubleMapFactory<F>, FloatFloatMapFactory<F>, FloatIntMapFactory<F>, FloatLongMapFactory<F>, FloatObjMapFactory<V,F>, FloatSetFactory<F>, FloatShortMapFactory<F>, HashByteByteMapFactory, HashByteCharMapFactory, HashByteDoubleMapFactory, HashByteFloatMapFactory, HashByteIntMapFactory, HashByteLongMapFactory, HashByteObjMapFactory<V>, HashByteSetFactory, HashByteShortMapFactory, HashCharByteMapFactory, HashCharCharMapFactory, HashCharDoubleMapFactory, HashCharFloatMapFactory, HashCharIntMapFactory, HashCharLongMapFactory, HashCharObjMapFactory<V>, HashCharSetFactory, HashCharShortMapFactory, HashContainerFactory<F>, 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, IntByteMapFactory<F>, IntCharMapFactory<F>, IntDoubleMapFactory<F>, IntFloatMapFactory<F>, IntHashFactory<F>, IntIntMapFactory<F>, IntLongMapFactory<F>, IntObjMapFactory<V,F>, IntSetFactory<F>, IntShortMapFactory<F>, LongByteMapFactory<F>, LongCharMapFactory<F>, LongDoubleMapFactory<F>, LongFloatMapFactory<F>, LongHashFactory<F>, LongIntMapFactory<F>, LongLongMapFactory<F>, LongObjMapFactory<V,F>, LongSetFactory<F>, LongShortMapFactory<F>, ObjByteMapFactory<K,F>, ObjCharMapFactory<K,F>, ObjDoubleMapFactory<K,F>, ObjFloatMapFactory<K,F>, ObjHashFactory<F>, ObjIntMapFactory<K,F>, ObjLongMapFactory<K,F>, ObjObjMapFactory<K,V,F>, ObjSetFactory<E,F>, ObjShortMapFactory<K,F>, ShortByteMapFactory<F>, ShortCharMapFactory<F>, ShortDoubleMapFactory<F>, ShortFloatMapFactory<F>, ShortHashFactory<F>, ShortIntMapFactory<F>, ShortLongMapFactory<F>, ShortObjMapFactory<V,F>, ShortSetFactory<F>, ShortShortMapFactory<F>
public interface ContainerFactory<F extends ContainerFactory<F>>
Root container factory interface. It isn't useful itself, hence there are no direct
implementations, it only defines common configuration methods.
getDefaultExpectedSize
int getDefaultExpectedSize()
- Returns the default expected size. This size is used to initialize containers
in no-arg factory methods and methods that accept uncountable sources of elements:
iterables, iterators, supplier
functions, etc.
Default value of the default expected size is 10.
- Returns:
- the default expected size
withDefaultExpectedSize
@Nonnull
F withDefaultExpectedSize(int defaultExpectedSize)
- Returns a copy of this factory with default expected size set to the given value.
- Parameters:
defaultExpectedSize - the new default expected size
- Returns:
- a copy of this factory with default expected size set to the given value
- Throws:
IllegalArgumentException - if defaultExpectedSize is non-positive