Class FailureBuilderClause<T>
- java.lang.Object
-
- be.sddevelopment.commons.validation.FailureBuilderClause<T>
-
- All Implemented Interfaces:
Function<T,Function<Failure.FailureBuilder,Failure.FailureBuilder>>
public class FailureBuilderClause<T> extends Object implements Function<T,Function<Failure.FailureBuilder,Failure.FailureBuilder>>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FailureBuilderClause<T>
andCode(String code)
FailureBuilderClause<T>
andReason(String reason)
FailureBuilderClause<T>
andSeverity(Severity level)
Function<Failure.FailureBuilder,Failure.FailureBuilder>
apply(T t)
static <T> FailureBuilderClause<T>
of(Function<T,Function<Failure.FailureBuilder,Failure.FailureBuilder>> function)
static <T> FailureBuilderClause<T>
withCode(String code)
static <T> FailureBuilderClause<T>
withReason(String reason)
static <T> FailureBuilderClause<T>
withSeverity(Severity level)
-
-
-
Method Detail
-
of
public static <T> FailureBuilderClause<T> of(Function<T,Function<Failure.FailureBuilder,Failure.FailureBuilder>> function)
-
withReason
public static <T> FailureBuilderClause<T> withReason(String reason)
-
withCode
public static <T> FailureBuilderClause<T> withCode(String code)
-
withSeverity
public static <T> FailureBuilderClause<T> withSeverity(Severity level)
-
andReason
public FailureBuilderClause<T> andReason(String reason)
-
andCode
public FailureBuilderClause<T> andCode(String code)
-
andSeverity
public FailureBuilderClause<T> andSeverity(Severity level)
-
apply
public Function<Failure.FailureBuilder,Failure.FailureBuilder> apply(T t)
- Specified by:
apply
in interfaceFunction<T,Function<Failure.FailureBuilder,Failure.FailureBuilder>>
-
-