Package org.apache.solr.bench.generators
Class FloatsDSL
java.lang.Object
org.apache.solr.bench.generators.FloatsDSL
A Class for creating Float Sources that will produce floats within a set interval and will shrink
within this domain.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()Generates Floats inclusively bounded below by Float.NEGATIVE_INFINITY and above by Float.POSITIVE_INFINITY.org.quicktheories.core.Gen<Float> between(float minInclusive, float maxInclusive) Generates Floats inclusively between two boundsfrom(float startInclusive) Starts a rangeorg.quicktheories.core.Gen<Float> Generates Floats inclusively bounded below by zero and above by one.org.quicktheories.core.Gen<Float> negative()Generates Floats inclusively bounded below by Float.NEGATIVE_INFINITY and above by a value very close to zero on the negative side.org.quicktheories.core.Gen<Float> positive()Generates Floats inclusively bounded below by a value very close to zero on the positive side and above by Float.POSITIVE_INFINITY.
-
Constructor Details
-
FloatsDSL
public FloatsDSL()
-
-
Method Details
-
all
Generates Floats inclusively bounded below by Float.NEGATIVE_INFINITY and above by Float.POSITIVE_INFINITY.- Returns:
- a Source of type Float
-
negative
Generates Floats inclusively bounded below by Float.NEGATIVE_INFINITY and above by a value very close to zero on the negative side.- Returns:
- a Source of type Float
-
positive
Generates Floats inclusively bounded below by a value very close to zero on the positive side and above by Float.POSITIVE_INFINITY.- Returns:
- a Source of type Float
-
fromZeroToOne
Generates Floats inclusively bounded below by zero and above by one.- Returns:
- a Source of type Float
-
between
Generates Floats inclusively between two bounds- Parameters:
minInclusive- minimum value to generatemaxInclusive- maximum value to generate- Returns:
- a Gen of Floats between minInclusive and maxInclusive
-
from
Starts a range- Parameters:
startInclusive- - lower bound of domain- Returns:
- start of range
-