Package com.illumon.util
Class FunctionalInterfaces
java.lang.Object
com.illumon.util.FunctionalInterfaces
public class FunctionalInterfaces extends Object
Holder for functional interfaces not defined in the java.util.function package.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FunctionalInterfaces.ThrowingBiConsumer<T,U,ExceptionType extends Exception>
static interface
FunctionalInterfaces.ThrowingBooleanSupplier<ExceptionType extends Exception>
Represents an operation that accepts no input and returns a boolean result, throwing an exception.static interface
FunctionalInterfaces.ThrowingConsumer<T,ExceptionType extends Exception>
Represents an operation that accepts a single input argument and returns no result, throwing an exception.static interface
FunctionalInterfaces.ThrowingRunnable<ExceptionType extends Exception>
static interface
FunctionalInterfaces.ThrowingSupplier<T,ExceptionType extends Exception>
Represents an operation that accepts no input and returns a result, throwing an exception.static interface
FunctionalInterfaces.ThrowingTriConsumer<T,U,V,ExceptionType extends Exception>
static interface
FunctionalInterfaces.TriFunction<T,U,V,R>
Represents a function that accepts three arguments and produces a result. -
Constructor Summary
Constructors Constructor Description FunctionalInterfaces()
-
Method Summary
Modifier and Type Method Description static <T, E extends Exception>
TunexpectedException(FunctionalInterfaces.ThrowingSupplier<T,E> operator)
-
Constructor Details
-
FunctionalInterfaces
public FunctionalInterfaces()
-
-
Method Details
-
unexpectedException
public static <T, E extends Exception> T unexpectedException(FunctionalInterfaces.ThrowingSupplier<T,E> operator)
-