-
- All Implemented Interfaces:
public final class ResultExtensions
-
-
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. -
-
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.
-
-
-
-