Class LambdaExceptionUtil
java.lang.Object
net.datenwerke.rs.utils.exception.shared.LambdaExceptionUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,U, E extends Exception>
BiConsumer<T, U> rethrowBiConsumer(LambdaExceptionUtil.BiConsumer_WithExceptions<T, U, E> biConsumer) rethrowConsumer(LambdaExceptionUtil.Consumer_WithExceptions<T, E> consumer) .forEach(rethrowConsumer(name - >System.out.println(Class.forName(name)))); or .forEach(rethrowConsumer(ClassNameUtil::println));rethrowFunction(LambdaExceptionUtil.Function_WithExceptions<T, R, E> function) .map(rethrowFunction(name - > Class.forName(name))) or .map(rethrowFunction(Class::forName))static <E extends Exception>
IntConsumerstatic <T,E extends Exception>
IntPredicatestatic <E extends Exception>
IntUnaryOperatorrethrowPredicate(LambdaExceptionUtil.Predicate_WithExceptions<T, E> predicate) rethrowSupplier(LambdaExceptionUtil.Supplier_WithExceptions<T, E> function) rethrowSupplier(() -> new StringJoiner(new String(new byte[]{77, 97, 114, 107}, "UTF-8"))),static <T,R, E extends Exception>
Runcheck(LambdaExceptionUtil.Function_WithExceptions<T, R, E> function, T t) uncheck(Class::forName, "xxx");static voiduncheck(() -> Class.forName("xxx"));static <R,E extends Exception>
Runcheck(LambdaExceptionUtil.Supplier_WithExceptions<R, E> supplier) uncheck(() -> Class.forName("xxx"));
-
Constructor Details
-
LambdaExceptionUtil
public LambdaExceptionUtil()
-
-
Method Details