Package org.apache.solr.bench.generators
Class ArraysDSL.ArrayGeneratorBuilder<T>
java.lang.Object
org.apache.solr.bench.generators.ArraysDSL.ArrayGeneratorBuilder<T>
- Enclosing class:
ArraysDSL
-
Method Summary
Modifier and TypeMethodDescriptionorg.quicktheories.core.Gen<T[]> withLength(int length) Generates arrays of specified type T of fixed lengthorg.quicktheories.core.Gen<T[]> withLengthBetween(int minLength, int maxLength) Generates arrays of specified type T of length bounded inclusively between minimumSize and maximumSizeorg.quicktheories.core.Gen<T[]> withLengths(org.quicktheories.core.Gen<Integer> lengths)
-
Method Details
-
withLength
Generates arrays of specified type T of fixed length- Parameters:
length- - fixed length- Returns:
- a Source of type T[]
-
withLengths
-
withLengthBetween
Generates arrays of specified type T of length bounded inclusively between minimumSize and maximumSize- Parameters:
minLength- - the inclusive minimum size of the arraymaxLength- - the inclusive maximum size of the array- Returns:
- a Source of type T[]
-