Interface ByteArbitrary

All Superinterfaces:
Arbitrary<Byte>, NumericalArbitrary<Byte,ByteArbitrary>

@API(status=MAINTAINED, since="1.0") public interface ByteArbitrary extends NumericalArbitrary<Byte,ByteArbitrary>
Fluent interface to configure the generation of Byte and byte values.
  • Method Details

    • 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