public class Attempt extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Attempt.UncheckedBiConsumer<T,U,E extends Exception> |
static interface |
Attempt.UncheckedConsumer<T,E extends Exception> |
static interface |
Attempt.UncheckedFunction<T,R,E extends Exception> |
static interface |
Attempt.UncheckedRunnable<E extends Exception> |
static interface |
Attempt.UncheckedSupplier<T,E extends Exception> |
Modifier and Type | Method and Description |
---|---|
static <T,U,E extends Exception> |
rethrows(Attempt.UncheckedBiConsumer<T,U,E> biConsumer) |
static <T,E extends Exception> |
rethrows(Attempt.UncheckedConsumer<T,E> consumer) |
static <T,R,E extends Exception> |
rethrows(Attempt.UncheckedFunction<T,R,E> function) |
static <E extends Exception> |
rethrows(Attempt.UncheckedRunnable<E> function) |
static <T,E extends Exception> |
rethrows(Attempt.UncheckedSupplier<T,E> function) |
static <T,U,E extends Exception> |
uncheck(Attempt.UncheckedBiConsumer<T,U,E> biConsumer,
T t,
U u) |
static <T,E extends Exception> |
uncheck(Attempt.UncheckedConsumer<T,E> consumer,
T t) |
static <T,R,E extends Exception> |
uncheck(Attempt.UncheckedFunction<T,R,E> function,
T t) |
static <E extends Exception> |
uncheck(Attempt.UncheckedRunnable<E> t) |
static <R,E extends Exception> |
uncheck(Attempt.UncheckedSupplier<R,E> supplier) |
public static <T,E extends Exception> Consumer<T> rethrows(Attempt.UncheckedConsumer<T,E> consumer) throws E extends Exception
E extends Exception
public static <T,U,E extends Exception> BiConsumer<T,U> rethrows(Attempt.UncheckedBiConsumer<T,U,E> biConsumer) throws E extends Exception
E extends Exception
public static <T,R,E extends Exception> Function<T,R> rethrows(Attempt.UncheckedFunction<T,R,E> function) throws E extends Exception
E extends Exception
public static <T,E extends Exception> Supplier<T> rethrows(Attempt.UncheckedSupplier<T,E> function) throws E extends Exception
E extends Exception
public static <E extends Exception> Runnable rethrows(Attempt.UncheckedRunnable<E> function) throws E extends Exception
E extends Exception
public static <T,E extends Exception> void uncheck(Attempt.UncheckedConsumer<T,E> consumer, T t)
public static <T,U,E extends Exception> void uncheck(Attempt.UncheckedBiConsumer<T,U,E> biConsumer, T t, U u)
public static <T,R,E extends Exception> R uncheck(Attempt.UncheckedFunction<T,R,E> function, T t)
public static <R,E extends Exception> R uncheck(Attempt.UncheckedSupplier<R,E> supplier)
public static <E extends Exception> void uncheck(Attempt.UncheckedRunnable<E> t)
Copyright © 2024. All rights reserved.