Skip to content

DurationDomain

class in io.proptastic

class DurationDomain

Signed lengths of time, Durations, between any two instants of the dates’ window unless bounded: whole seconds most tries, a fraction of a second one try in 8, and about one try in five an edge, zero, a nanosecond, a second, 23 hours, a day or 25 hours, either way. A counterexample shrinks toward zero, or the bound nearest it (decision 81).

Methods

atLeast

DurationDomain atLeast(Duration length)

length or longer.

atMost

DurationDomain atMost(Duration length)

length or shorter.

greaterThan

DurationDomain greaterThan(Duration length)

Longer than length.

lessThan

DurationDomain lessThan(Duration length)

Shorter than length.

Privacy