Interface IntegerArbitrary

All Superinterfaces:
Arbitrary<Integer>, NumericalArbitrary<Integer,IntegerArbitrary>

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

    • between

      default IntegerArbitrary between(int min, int max)
      Set the allowed lower min (included) and upper max (included) bounder of generated numbers.
    • greaterOrEqual

      IntegerArbitrary greaterOrEqual(int min)
      Set the allowed lower min (included) bounder of generated numbers.
    • lessOrEqual

      IntegerArbitrary lessOrEqual(int max)
      Set the allowed upper max (included) bounder of generated numbers.
    • shrinkTowards

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