Class 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.
    • Constructor Detail

      • FloatsDSL

        public FloatsDSL()
    • 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 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