A - the type of Constraint this builder should outputS - the type of this builder's source object (eg. ConfigValueBuilder or ConstraintsBuilderT - the type of intermediary objects this builder's constraints should process. May be identical to A.B - the type of this, for chainingpublic abstract class ConstraintsBuilder<S,A,T,B extends ConstraintsBuilder<S,A,T,B>> extends AbstractConstraintsBuilder<S,A,T,B>
| Modifier and Type | Class and Description |
|---|---|
static class |
ConstraintsBuilder.Aggregate<S,A,T> |
static class |
ConstraintsBuilder.Scalar<S,T> |
source, sourceConstraints, type| Modifier and Type | Method and Description |
|---|---|
static <S,A,T> ConstraintsBuilder.Aggregate<S,A,T> |
aggregate(S source,
java.util.List<Constraint<? super A>> constraints,
java.lang.Class<A> aggregateType,
java.lang.Class<T> componentType) |
abstract CompositeConstraintBuilder<B,A> |
composite(CompositeType type) |
abstract S |
finish() |
static <S,T> ConstraintsBuilder.Scalar<S,T> |
scalar(S source,
java.util.List<Constraint<? super T>> constraints,
java.lang.Class<T> type) |
public static <S,T> ConstraintsBuilder.Scalar<S,T> scalar(S source, java.util.List<Constraint<? super T>> constraints, java.lang.Class<T> type)
public static <S,A,T> ConstraintsBuilder.Aggregate<S,A,T> aggregate(S source, java.util.List<Constraint<? super A>> constraints, java.lang.Class<A> aggregateType, java.lang.Class<T> componentType)
public abstract CompositeConstraintBuilder<B,A> composite(CompositeType type)
public abstract S finish()