Package org.apache.solr.bench.generators
Class ArraysDSL.ArrayGeneratorBuilder<T>
- java.lang.Object
-
- org.apache.solr.bench.generators.ArraysDSL.ArrayGeneratorBuilder<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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 Detail
-
withLength
public org.quicktheories.core.Gen<T[]> withLength(int length)
Generates arrays of specified type T of fixed length- Parameters:
length
- - fixed length- Returns:
- a Source of type T[]
-
withLengths
public org.quicktheories.core.Gen<T[]> withLengths(org.quicktheories.core.Gen<Integer> lengths)
-
withLengthBetween
public org.quicktheories.core.Gen<T[]> withLengthBetween(int minLength, int maxLength)
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[]
-
-