- All Known Implementing Classes:
If
public interface IIf
-
Method Summary
Modifier and TypeMethodDescription<O> IOptional<O,RuntimeException> execute(ISupplier<O, RuntimeException> supplier) <O> IOptional<O,RuntimeException> or(ISupplier<O, RuntimeException> supplier)
-
Method Details
-
execute
-
execute
<O,E extends Exception> IOptional<O,E> execute(Class<E> exceptionClass, ISupplier<O, E> supplier) throws E- Throws:
E extends Exception
-
execute
- Throws:
E extends Exception
-
or
-
or
<O,E extends Exception> IOptional<O,E> or(Class<E> exceptionClass, ISupplier<O, E> supplier) throws E- Throws:
E extends Exception
-
or
- Throws:
E extends Exception
-