Package org.core.utils
Interface Else
public interface Else
-
Method Summary
Modifier and TypeMethodDescriptionstatic <O, E extends O, F>
Fstatic <F, E extends Throwable>
FthrowMultiple(Class<E> clazz, ThrowableSupplier<? extends F,E>... attempt)
static <F, E extends Throwable>
FthrowOr(Class<E> clazz, ThrowableSupplier<? extends F,E> consumer, F fail)
-
Method Details
-
canCast
-
throwOr
static <F, E extends Throwable> F throwOr(Class<E> clazz, ThrowableSupplier<? extends F,E> consumer, F fail) -
throwMultiple
static <F, E extends Throwable> F throwMultiple(Class<E> clazz, ThrowableSupplier<? extends F,E>... attempt) throws E- Throws:
E extends Throwable
-