Interface DoubleArbitrary

    • Method Detail

      • between

        default DoubleArbitrary between​(double min,
                                        double max)
        Set the allowed lower min (included) and upper max (included) border of generated numbers.
        Parameters:
        min - The lower border of possible values
        max - The upper border of possible values
      • between

        DoubleArbitrary between​(double min,
                                boolean minIncluded,
                                double max,
                                boolean maxIncluded)
        Set the allowed lower min (included) and upper max (included) border of generated numbers. Specify if borders should be included in allowed values or not.
        Parameters:
        min - The lower border of possible values
        minIncluded - Should the lower border be included
        max - The upper border of possible values
        maxIncluded - Should the upper border be included
      • greaterOrEqual

        DoubleArbitrary greaterOrEqual​(double min)
        Set the allowed lower min (included) border of generated numbers.
        Parameters:
        min - The lower border of possible values
      • greaterThan

        @API(status=MAINTAINED,
             since="1.2.7")
        DoubleArbitrary greaterThan​(double min)
        Set the allowed lower min (excluded) border of generated numbers.
        Parameters:
        min - The lower border of possible values
      • lessOrEqual

        DoubleArbitrary lessOrEqual​(double max)
        Set the allowed upper max (included) border of generated numbers.
        Parameters:
        max - The upper border of possible values
      • lessThan

        @API(status=MAINTAINED,
             since="1.2.7")
        DoubleArbitrary lessThan​(double max)
        Set the allowed upper max (excluded) border of generated numbers.
        Parameters:
        max - The upper border of possible values
      • ofScale

        DoubleArbitrary ofScale​(int scale)
        Set the scale (maximum number of decimal places) to scale.
      • shrinkTowards

        @API(status=EXPERIMENTAL,
             since="1.1.5")
        DoubleArbitrary shrinkTowards​(double target)
        Set shrinking target to target which must be between the allowed bounds.
        Parameters:
        target - The value which is considered to be the most simple value for shrinking