- java.lang.Object
-
- de.kgrupp.monads.result.Success<T>
-
-
Field Summary
-
Fields inherited from interface de.kgrupp.monads.result.Result
INTERNAL_FAILURE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getErrorMessage()
T
getObject()
java.lang.Throwable
getThrowable()
int
hashCode()
boolean
isError()
boolean
isInternalError()
boolean
isSuccess()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.kgrupp.monads.result.Result
asOptional, consume, consumeOrFail, filter, flatMap, flatRecover, flatRunnable, map, orElse, orElseGet, orElseThrow, orElseThrow, recover
-
-
-
-
Method Detail
-
isInternalError
public boolean isInternalError()
- Specified by:
isInternalError
in interfaceResult<T>
-
getErrorMessage
public java.lang.String getErrorMessage()
- Specified by:
getErrorMessage
in interfaceResult<T>
-
getThrowable
public java.lang.Throwable getThrowable()
- Specified by:
getThrowable
in interfaceResult<T>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-