public abstract class StreamHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
StreamHelper.ThrowingRunner
A helper interface for runnables which may
throw an exception.
|
static interface |
StreamHelper.ThrowingSupplier<T>
A helper interface to capture suppliers which
may throw an exception.
|
| Constructor and Description |
|---|
StreamHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
trying(StreamHelper.ThrowingRunner runner) |
static <T> T |
trying(StreamHelper.ThrowingSupplier<T> supplier) |
public static <T> T trying(StreamHelper.ThrowingSupplier<T> supplier)
public static void trying(StreamHelper.ThrowingRunner runner)