Skip to content

BigIntegerDomain

class in io.proptastic

class BigIntegerDomain

Integers of any size, BigIntegers: -2^127 to 2^127-1 unless bounded (a bound past it moves the other end a range’s width beyond), the range Rust’s i128 has, so the two editions draw the same values from the same choices: bigIntegers().atLeast(BigInteger.ZERO). As integers() does, it orders the range from the value nearest 0 outwards, the positive before the negative, and draws an index into that order; an index past 64 bits is written as several 64-bit choices, the most significant first, as many as the range needs (decision 87). A counterexample shrinks toward 0, or the bound nearest it.

Methods

atLeast

BigIntegerDomain atLeast(BigInteger n)

n or more.

atMost

BigIntegerDomain atMost(BigInteger n)

n or less.

greaterThan

BigIntegerDomain greaterThan(BigInteger n)

More than n.

lessThan

BigIntegerDomain lessThan(BigInteger n)

Less than n.

Privacy