Class DoublesDSL


  • public class DoublesDSL
    extends Object
    A Class for creating Double Sources that will produce doubles within a set interval and will shrink within this domain.
    • Constructor Detail

      • DoublesDSL

        public DoublesDSL()
    • Method Detail

      • all

        public SolrGen<Double> all()
        Generates Doubles inclusively bounded below by Double.NEGATIVE_INFINITY and above by Double.POSITIVE_INFINITY.
        Returns:
        a Source of type Double
      • negative

        public SolrGen<Double> negative()
        Generates Doubles inclusively bounded below by Double.NEGATIVE_INFINITY and above by a value very close to zero on the negative side.
        Returns:
        a Source of type Double
      • positive

        public SolrGen<Double> positive()
        Generates Doubles inclusively bounded below by a value very close to zero on the positive side and above by Double.POSITIVE_INFINITY.
        Returns:
        a Source of type Double
      • fromZeroToOne

        public SolrGen<Double> fromZeroToOne()
        Generates Doubles inclusively bounded below by zero and above by one.
        Returns:
        a Source of type Double
      • between

        public SolrGen<Double> between​(double minInclusive,
                                       double maxInclusive)
        Generates Doubles inclusively between two bounds
        Parameters:
        minInclusive - minimum value to generate
        maxInclusive - maximum value to generate
        Returns:
        a Gen of Doubles between minInclusive and maxInclusive
      • from

        public DoublesDSL.DoubleDomainBuilder from​(double startInclusive)
        Starts a range
        Parameters:
        startInclusive - - lower bound of domain
        Returns:
        start of range