Package me.ehp246.aufjms.core.reflection
Class InvocationOutcome<T>
java.lang.Object
me.ehp246.aufjms.core.reflection.InvocationOutcome<T>
public final class InvocationOutcome<T>
extends java.lang.Object
- Since:
- 1.0
- Author:
- Lei Yang
-
Method Summary
Modifier and Type Method Description TgetReturned()java.lang.ThrowablegetThrown()booleanhasReturned()booleanhasThrown()java.util.Optional<T>ifReturnedPresent()java.lang.ObjectoutcomeValue()static <T> InvocationOutcome<T>returned(T returned)static <T> InvocationOutcome<T>thrown(java.lang.Throwable thrown)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
returned
-
thrown
-
getReturned
-
getThrown
public java.lang.Throwable getThrown() -
hasReturned
public boolean hasReturned() -
hasThrown
public boolean hasThrown() -
outcomeValue
public java.lang.Object outcomeValue() -
ifReturnedPresent
-