T
- Result typeE
- Error typepublic static class ValidationResult.SuccessfulResult<T,E> extends java.lang.Object implements ValidationResult<T,E>
ValidationResult.FailedResult<T,E>, ValidationResult.SuccessfulResult<T,E>
Constructor and Description |
---|
SuccessfulResult() |
Modifier and Type | Method and Description |
---|---|
Maybe<E> |
failure() |
Maybe<T> |
success() |
static <T,E> ValidationResult<T,E> |
success(T result)
Create a successful result instance with specified result
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toXor
public static <T,E> ValidationResult<T,E> success(T result)
result
- : Successful Resultpublic Maybe<T> success()
success
in interface ValidationResult<T,E>