Package org.apache.solr.bench.generators
Class FloatsDSL
- java.lang.Object
 - 
- org.apache.solr.bench.generators.FloatsDSL
 
 
- 
public class FloatsDSL extends Object
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 Modifier and Type Class Description classFloatsDSL.FloatDomainBuilder 
- 
Constructor Summary
Constructors Constructor Description FloatsDSL() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrGen<Float>all()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 boundsFloatsDSL.FloatDomainBuilderfrom(float startInclusive)Starts a rangeorg.quicktheories.core.Gen<Float>fromZeroToOne()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. 
 - 
 
- 
- 
Method Detail
- 
all
public SolrGen<Float> all()
Generates Floats inclusively bounded below by Float.NEGATIVE_INFINITY and above by Float.POSITIVE_INFINITY.- Returns:
 - a Source of type Float
 
 
- 
negative
public 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.- Returns:
 - a Source of type Float
 
 
- 
positive
public 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.- Returns:
 - a Source of type Float
 
 
- 
fromZeroToOne
public org.quicktheories.core.Gen<Float> fromZeroToOne()
Generates Floats inclusively bounded below by zero and above by one.- Returns:
 - a Source of type Float
 
 
- 
between
public org.quicktheories.core.Gen<Float> between(float minInclusive, float maxInclusive)
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
public FloatsDSL.FloatDomainBuilder from(float startInclusive)
Starts a range- Parameters:
 startInclusive- - lower bound of domain- Returns:
 - start of range
 
 
 - 
 
 -