Class Constrained<T>
java.lang.Object
be.sddevelopment.validation.core.Constrained<T>
Represents the result of evaluating an object of any type.
The result of said evaluation is represented by a Rationale
.
The original object is maintained as well, to allow for further processing, and flexibility in dealing with various validation states.
- Version:
- 1.0.0-SNAPSHOT
- Author:
- Stijn Dejongh
-
Method Summary
Modifier and TypeMethodDescriptionadheresTo
(Constraint<T> constraint) static <T> Constrained
<T> constrain
(T toConstrain) static <T> Constrained
<T> constrain
(T toConstrain, ModularRuleset<T> ruleset) <R> Constrained
<R> void
void
guard()
void
boolean
isValid()
static <T> Constrained
<T> of
(T toConstrain, ModularRuleset<T> ruleset)
-
Method Details
-
isValid
public boolean isValid() -
adheresTo
-
constrain
-
constrain
-
of
-
rationale
-
feedback
- Throws:
InvalidObjectException
-
guard
- Throws:
InvalidObjectException
-
extract
-
ifValid
-