Interface ByteArbitrary

    • Method Detail

      • between

        default ByteArbitrary between​(byte min,
                                      byte max)
        Set the allowed lower min (included) and upper max (included) bounds of generated numbers.
        Parameters:
        min - min value (included)
        max - max value (included)
        Returns:
        new instance of arbitrary
      • greaterOrEqual

        ByteArbitrary greaterOrEqual​(byte min)
        Set the allowed lower min (included) bound of generated numbers.
        Parameters:
        min - min value (included)
        Returns:
        new instance of arbitrary
      • lessOrEqual

        ByteArbitrary lessOrEqual​(byte max)
        Set the allowed upper max (included) bound of generated numbers.
        Parameters:
        max - max value (included)
        Returns:
        new instance of arbitrary
      • shrinkTowards

        @API(status=MAINTAINED,
             since="1.4.0")
        ByteArbitrary shrinkTowards​(int target)
        Set shrinking target to target which must be between the allowed bounds.
        Parameters:
        target - target shrinking value
        Returns:
        new instance of arbitrary