T - Successful Result TypeE - Error typepublic interface ValidationResult<T,E>
| Modifier and Type | Interface and Description |
|---|---|
static class |
ValidationResult.FailedResult<T,E>
Store a failed validation result
|
static class |
ValidationResult.SuccessfulResult<T,E>
Store a Successful Validation Result
|
| Modifier and Type | Method and Description |
|---|---|
Maybe<E> |
failure() |
Maybe<T> |
success() |
default Xor<E,T> |
toXor() |