RangeDomain
class in io.proptastic
abstract sealed class RangeDomain<T, S>The bound words for numbers, all in this one class so they’re easy to rename: integers().atLeast(1).atMost(100). Each bound replaces the one on its side; an empty range is
refused at once. Size and length bounds are in io.proptastic.bounds.Bounds.
Methods
atLeast
S atLeast(long n)n or more.
atMost
S atMost(long n)n or less.
greaterThan
S greaterThan(long n)More than n.
lessThan
S lessThan(long n)Less than n.
atLeast
S atLeast(double n)n or more.
atMost
S atMost(double n)n or less.
greaterThan
S greaterThan(double n)More than n.
lessThan
S lessThan(double n)Less than n.