Package org.apache.solr.bench.generators
Class StringsDSL.StringGeneratorBuilder
java.lang.Object
org.apache.solr.bench.generators.StringsDSL.StringGeneratorBuilder
- Enclosing class:
StringsDSL
The type String generator builder.
-
Method Summary
Modifier and TypeMethodDescriptionmaxCardinality(int max) Max cardinality string generator builder.maxCardinality(org.quicktheories.core.Gen<Integer> max) Max cardinality string generator builder.multi(int count) Multi string generator builder.ofFixedNumberOfCodePoints(int codePoints) Generates Strings of a fixed number of code points.ofLength(int fixedLength) Generates Strings of a fixed length.ofLengthBetween(int minLength, int maxLength) Generates Strings of length bounded between minLength and maxLength inclusively.
-
Method Details
-
ofFixedNumberOfCodePoints
Generates Strings of a fixed number of code points.- Parameters:
codePoints- - the fixed number of code points for the String- Returns:
- a a Source of type String
-
ofLength
Generates Strings of a fixed length.- Parameters:
fixedLength- - the fixed length for the Strings- Returns:
- a Source of type String
-
maxCardinality
Max cardinality string generator builder.- Parameters:
max- the max- Returns:
- the string generator builder
-
maxCardinality
Max cardinality string generator builder.- Parameters:
max- the max- Returns:
- the string generator builder
-
multi
Multi string generator builder.- Parameters:
count- the count- Returns:
- the string generator builder
-
ofLengthBetween
Generates Strings of length bounded between minLength and maxLength inclusively.- Parameters:
minLength- - minimum inclusive length of StringmaxLength- - maximum inclusive length of String- Returns:
- a Source of type String
-