Package io.micronaut.aot.internal
Class StreamHelper
- java.lang.Object
-
- io.micronaut.aot.internal.StreamHelper
-
public abstract class StreamHelper extends java.lang.ObjectUtility methods to deal with exceptions being thrown in streams.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStreamHelper.ThrowingRunnerA helper interface for runnables which may throw an exception.static interfaceStreamHelper.ThrowingSupplier<T>A helper interface to capture suppliers which may throw an exception.
-
Constructor Summary
Constructors Constructor Description StreamHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidtrying(StreamHelper.ThrowingRunner runner)static <T> Ttrying(StreamHelper.ThrowingSupplier<T> supplier)
-
-
-
Method Detail
-
trying
public static <T> T trying(StreamHelper.ThrowingSupplier<T> supplier)
-
trying
public static void trying(StreamHelper.ThrowingRunner runner)
-
-