Package io.github.connellite.util
Class SuppressExceptions
java.lang.Object
io.github.connellite.util.SuppressExceptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,U> void accept(UncheckedBiConsumer<? super T, ? super U> consumer, T t, U u) static <T> voidaccept(UncheckedConsumer<? super T> consumer, T arg) static <T,U, R> R apply(UncheckedBiFunction<? super T, ? super U, ? extends R> function, T t, U u) static <T,U, R> R apply(UncheckedBiFunction<? super T, ? super U, ? extends R> function, T t, U u, R fallback) static <T,R> R apply(UncheckedFunction<? super T, ? extends R> function, T arg) static <T,R> R apply(UncheckedFunction<? super T, ? extends R> function, T arg, R fallback) static <T> Tstatic <T> Tstatic <T> Tget(UncheckedSupplier<? extends T> supplier) static <T> Tget(UncheckedSupplier<? extends T> supplier, T fallback) static voidrun(UncheckedRunnable action) static <T,U> Boolean test(UncheckedBiPredicate<? super T, ? super U> predicate, T t, U u) static <T,U> Boolean test(UncheckedBiPredicate<? super T, ? super U> predicate, T t, U u, Boolean fallback) static <T> Booleantest(UncheckedPredicate<? super T> predicate, T arg) static <T> Booleantest(UncheckedPredicate<? super T> predicate, T arg, Boolean fallback)
-
Constructor Details
-
SuppressExceptions
public SuppressExceptions()
-
-
Method Details
-
run
- Parameters:
action- ignored ifnull
-
call
- Returns:
- callback result, or
nullifcallableisnullor throws
-
call
- Returns:
- callback result, or
fallbackifcallableisnullor throws
-
get
- Returns:
- supplied value, or
nullifsupplierisnullor throws
-
get
- Returns:
- supplied value, or
fallbackifsupplierisnullor throws
-
apply
- Returns:
- function result, or
nulliffunctionisnullor throws
-
apply
- Returns:
- function result, or
fallbackiffunctionisnullor throws
-
apply
public static <T,U, R applyR> (UncheckedBiFunction<? super T, ? super U, ? extends R> function, T t, U u) - Returns:
- function result, or
nulliffunctionisnullor throws
-
apply
public static <T,U, R applyR> (UncheckedBiFunction<? super T, ? super U, ? extends R> function, T t, U u, R fallback) - Returns:
- function result, or
fallbackiffunctionisnullor throws
-
accept
- Parameters:
consumer- ignored ifnull
-
accept
- Parameters:
consumer- ignored ifnull
-
test
- Returns:
- predicate outcome, or
nullifpredicateisnullor throws
-
test
- Returns:
- predicate outcome, or
fallbackifpredicateisnullor throws
-
test
- Returns:
- predicate outcome, or
nullifpredicateisnullor throws
-
test
public static <T,U> Boolean test(UncheckedBiPredicate<? super T, ? super U> predicate, T t, U u, Boolean fallback) - Returns:
- predicate outcome, or
fallbackifpredicateisnullor throws
-