Interface FloatArbitrary

    • Method Detail

      • between

        default FloatArbitrary between​(float min,
                                       float 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

        FloatArbitrary between​(float min,
                               boolean minIncluded,
                               float 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

        FloatArbitrary greaterOrEqual​(float 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")
        FloatArbitrary greaterThan​(float min)
        Set the allowed lower min (excluded) border of generated numbers.
        Parameters:
        min - The lower border of possible values
      • lessOrEqual

        FloatArbitrary lessOrEqual​(float 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")
        FloatArbitrary lessThan​(float max)
        Set the allowed upper max (excluded) border of generated numbers.
        Parameters:
        max - The upper border of possible values
      • ofScale

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

        @API(status=MAINTAINED,
             since="1.4.0")
        FloatArbitrary shrinkTowards​(float target)
        Set shrinking target to target which must be between the allowed bounds.