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
    class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 bounds
    from(float startInclusive)
    Starts a range
    org.quicktheories.core.Gen<Float>
    Generates Floats inclusively bounded below by zero and above by one.
    org.quicktheories.core.Gen<Float>
    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>
    Generates Floats inclusively bounded below by a value very close to zero on the positive side and above by Float.POSITIVE_INFINITY.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FloatsDSL

      public FloatsDSL()
  • Method Details

    • 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 generate
      maxInclusive - 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