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 Details

    • returned

      public static <T> InvocationOutcome<T> returned​(T returned)
    • thrown

      public static <T> InvocationOutcome<T> thrown​(java.lang.Throwable thrown)
    • getReturned

      public T getReturned()
    • getThrown

      public java.lang.Throwable getThrown()
    • hasReturned

      public boolean hasReturned()
    • hasThrown

      public boolean hasThrown()
    • outcomeValue

      public java.lang.Object outcomeValue()
    • ifReturnedPresent

      public java.util.Optional<T> ifReturnedPresent()