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 interfaceFunctionalInterfaces.ThrowingBiConsumer<T,U,ExceptionType extends Exception>static interfaceFunctionalInterfaces.ThrowingBooleanSupplier<ExceptionType extends Exception>Represents an operation that accepts no input and returns a boolean result, throwing an exception.static interfaceFunctionalInterfaces.ThrowingConsumer<T,ExceptionType extends Exception>Represents an operation that accepts a single input argument and returns no result, throwing an exception.static interfaceFunctionalInterfaces.ThrowingRunnable<ExceptionType extends Exception>static interfaceFunctionalInterfaces.ThrowingSupplier<T,ExceptionType extends Exception>Represents an operation that accepts no input and returns a result, throwing an exception.static interfaceFunctionalInterfaces.ThrowingTriConsumer<T,U,V,ExceptionType extends Exception>static interfaceFunctionalInterfaces.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)
-