Class FieldValidationRule.FieldValidationRuleBuilder<R,T>
- java.lang.Object
-
- be.sddevelopment.commons.validation.FieldValidationRule.FieldValidationRuleBuilder<R,T>
-
- Enclosing class:
- FieldValidationRule<R,T>
public static class FieldValidationRule.FieldValidationRuleBuilder<R,T> extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldValidationRule<R,T>
build()
FieldValidationRule.FieldValidationRuleBuilder<R,T>
extractor(Function<R,T> extractor)
FieldValidationRule.FieldValidationRuleBuilder<R,T>
failureCreator(FailureBuilderClause<T> failureCreator)
FieldValidationRule.FieldValidationRuleBuilder<R,T>
fieldAssertion(Function<T,Boolean> fieldAssertion)
String
toString()
-
-
-
Method Detail
-
extractor
public FieldValidationRule.FieldValidationRuleBuilder<R,T> extractor(Function<R,T> extractor)
- Returns:
this
.
-
fieldAssertion
public FieldValidationRule.FieldValidationRuleBuilder<R,T> fieldAssertion(Function<T,Boolean> fieldAssertion)
- Returns:
this
.
-
failureCreator
public FieldValidationRule.FieldValidationRuleBuilder<R,T> failureCreator(FailureBuilderClause<T> failureCreator)
- Returns:
this
.
-
build
public FieldValidationRule<R,T> build()
-
-