public abstract class Try extends Object
| Constructor and Description |
|---|
Try() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
accept(ThrowingConsumer<T,? extends Exception> consumer,
T value) |
static <T,R> R |
apply(ThrowingFunction<T,R,? extends Exception> function,
T value) |
static <T,E extends Exception> |
consumer(ThrowingConsumer<T,E> consumer) |
static <T,R,E extends Exception> |
function(ThrowingFunction<T,R,E> function) |
static <T> T |
get(ThrowingSupplier<T,? extends Exception> supplier) |
static void |
run(ThrowingRunnable<? extends Exception> runable) |
static <E extends Exception> |
runable(ThrowingRunnable<E> runable) |
static <T,E extends Exception> |
supplier(ThrowingSupplier<T,E> supplier) |
public static <T,R,E extends Exception> ThrowingFunction<T,R,E> function(ThrowingFunction<T,R,E> function)
public static <T,E extends Exception> ThrowingSupplier<T,E> supplier(ThrowingSupplier<T,E> supplier)
public static <T,E extends Exception> ThrowingConsumer<T,E> consumer(ThrowingConsumer<T,E> consumer)
public static <E extends Exception> ThrowingRunnable<E> runable(ThrowingRunnable<E> runable)
public static <T,R> R apply(ThrowingFunction<T,R,? extends Exception> function, T value)
public static <T> T get(ThrowingSupplier<T,? extends Exception> supplier)
public static <T> void accept(ThrowingConsumer<T,? extends Exception> consumer, T value)
public static void run(ThrowingRunnable<? extends Exception> runable)
Copyright © 2025. All rights reserved.