Schnittstelle ByteArbitrary

Alle Superschnittstellen:
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.
  • Methodendetails

    • between

      default ByteArbitrary between(byte min, byte max)
      Set the allowed lower min (included) and upper max (included) bounds of generated numbers.
      Parameter:
      min - min value (included)
      max - max value (included)
      Gibt zurück:
      new instance of arbitrary
    • greaterOrEqual

      ByteArbitrary greaterOrEqual(byte min)
      Set the allowed lower min (included) bound of generated numbers.
      Parameter:
      min - min value (included)
      Gibt zurück:
      new instance of arbitrary
    • lessOrEqual

      ByteArbitrary lessOrEqual(byte max)
      Set the allowed upper max (included) bound of generated numbers.
      Parameter:
      max - max value (included)
      Gibt zurück:
      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.
      Parameter:
      target - target shrinking value
      Gibt zurück:
      new instance of arbitrary