F
- the concrete factory type which extends this interfacepublic interface ContainerFactory<F extends ContainerFactory<F>>
Modifier and Type | Method and Description |
---|---|
int |
getDefaultExpectedSize()
Returns the default expected size.
|
F |
withDefaultExpectedSize(int defaultExpectedSize)
Returns a copy of this factory with default expected size set to the given value.
|
int getDefaultExpectedSize()
Default value of the default expected size is 10.
@Nonnull F withDefaultExpectedSize(int defaultExpectedSize)
defaultExpectedSize
- the new default expected sizeIllegalArgumentException
- if defaultExpectedSize
is non-positive