Package org.apache.solr.bench.generators
Class ArraysDSL
java.lang.Object
org.apache.solr.bench.generators.ArraysDSL
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionofCharacters(org.quicktheories.core.Gen<Character> source) Creates an ArrayGeneratorBuilder of Characters that can be used to create an array SourceCreates an ArrayGeneratorBuilder of the given class that can be used to create an array SourceofIntegers(org.quicktheories.core.Gen<Integer> source) Creates an ArrayGeneratorBuilder of Integers that can be used to create an array SourceCreates an ArrayGeneratorBuilder of Strings that can be used to create an array Source
-
Constructor Details
-
ArraysDSL
public ArraysDSL()
-
-
Method Details
-
ofIntegers
public ArraysDSL.ArrayGeneratorBuilder<Integer> ofIntegers(org.quicktheories.core.Gen<Integer> source) Creates an ArrayGeneratorBuilder of Integers that can be used to create an array Source- Parameters:
source- a Source of type Integer- Returns:
- an ArrayGeneratorBuilder of type Integer
-
ofCharacters
public ArraysDSL.ArrayGeneratorBuilder<Character> ofCharacters(org.quicktheories.core.Gen<Character> source) Creates an ArrayGeneratorBuilder of Characters that can be used to create an array Source- Parameters:
source- a Source of type Character- Returns:
- an ArrayGeneratorBuilder of type Character
-
ofStrings
Creates an ArrayGeneratorBuilder of Strings that can be used to create an array Source- Parameters:
source- a Source of type String- Returns:
- an ArrayGeneratorBuilder of type String
-
ofClass
public <T> ArraysDSL.ArrayGeneratorBuilder<T> ofClass(org.quicktheories.core.Gen<T> source, Class<T> c) Creates an ArrayGeneratorBuilder of the given class that can be used to create an array Source- Type Parameters:
T- type of value to generate- Parameters:
source- a Source of type Tc- a Class of type T- Returns:
- an ArrayGeneratorBuilder of type T
-