Package 

Class ResultExtensions

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> Result<T> andPrintStackTrace(Result<T> $self) Prints the original encapsulated Throwable exception and its backtrace to the standard error stream if this instance represents failure.
      final static <T extends Any> Result<T> andPrint(Result<T> $self) Prints the encapsulated value to the standard output stream if this instance represents success.
      final static <T extends Any> Result<T> andPrintln(Result<T> $self) Prints the encapsulated value and the line separator to the standard output stream if this instance represents success.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • andPrintStackTrace

         final static <T extends Any> Result<T> andPrintStackTrace(Result<T> $self)

        Prints the original encapsulated Throwable exception and its backtrace to the standard error stream if this instance represents failure.

      • andPrint

         final static <T extends Any> Result<T> andPrint(Result<T> $self)

        Prints the encapsulated value to the standard output stream if this instance represents success.

      • andPrintln

         final static <T extends Any> Result<T> andPrintln(Result<T> $self)

        Prints the encapsulated value and the line separator to the standard output stream if this instance represents success.