Skip to content

AnyDomain

class in io.proptastic

class AnyDomain<T>

any(T.class): a domain found from the type, whose record components can each be given a domain of their own: any(Trade.class).with(Trade::quantity, integers().atLeast(1)).

Methods

with

<R, C> AnyDomain<T> with(AnyDomain.Component<R, C> component, Domain<? extends C> domain)

This domain with component drawn from domain, wherever its record is drawn, however deep: any(Order.class).with(Line::quantity, integers().atLeast(1)).

Privacy