Uses of Class
be.sddevelopment.commons.validation.Fallible
-
Packages that use Fallible Package Description be.sddevelopment.commons.validation Package containing utility classes to write clean code for validation purposes. -
-
Uses of Fallible in be.sddevelopment.commons.validation
Methods in be.sddevelopment.commons.validation that return Fallible Modifier and Type Method Description Fallible<T>
Fallible. ensure(Rule<T> rule)
Fallible<T>
Fallible. ensure(Function<T,Boolean> assertion)
ensure.Fallible<T>
Fallible. ensure(Function<T,Boolean> assertion, Function<T,Function<Failure.FailureBuilder,Failure.FailureBuilder>> error)
ensure.Fallible<T>
Fallible. errorTemplate(ErrorTemplate<T> template)
errorTemplate.Fallible<T>
Fallible. ifValid(Consumer<T> actionToTake)
Execute aConsumer
that takes an object of type T, when all previous {#link ensure()} conditions are met.static <S> Fallible<S>
Fallible. of(S toValidate)
Fallible<T>
Fallible. orElse(Consumer<T> actionToTake)
-