Skip to content

Bounds

class in io.proptastic.bounds

class Bounds

The size and length bounds, behind their own static import: import static io.proptastic.bounds.Bounds.*;, then lists(ops).ofSize(atLeast(1), atMost(50)). Number bounds are methods on the number domains, in RangeDomain.

Methods

atLeast

static Bound atLeast(int n)

n or more.

atMost

static Bound atMost(int n)

n or fewer.

greaterThan

static Bound greaterThan(int n)

More than n.

lessThan

static Bound lessThan(int n)

Fewer than n.

Privacy