public class

Catcher

extends Object
java.lang.Object
   ↳ com.davidluoye.support.except.Catcher

Summary

Public Constructors
Catcher()
Public Methods
static <R> R execute(Supplier<R> supplier)
static <T> boolean execute(T t, Predicate<T> predicate)
static <T> void execute(T t, Consumer<T> consumer)
static <T, U> void execute(T t, U u, BiConsumer<T, U> consumer)
static <T, U> boolean execute(T t, U u, BiPredicate<T, U> predicate)
static <T, R> R execute(T t, Function<T, R> function)
static <T, U, R> R execute(T t, U u, BiFunction<T, U, R> function)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Catcher ()

Public Methods

public static R execute (Supplier<R> supplier)

public static boolean execute (T t, Predicate<T> predicate)

public static void execute (T t, Consumer<T> consumer)

public static void execute (T t, U u, BiConsumer<T, U> consumer)

public static boolean execute (T t, U u, BiPredicate<T, U> predicate)

public static R execute (T t, Function<T, R> function)

public static R execute (T t, U u, BiFunction<T, U, R> function)