Package net.anwiba.commons.lang.optional
Interface IIf
-
- All Known Implementing Classes:
If
public interface IIf
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <O,E extends java.lang.Exception>
IOptional<O,E>excecute(java.lang.Class<E> exceptionClass, ISupplier<O,E> supplier)<E extends java.lang.Exception>
IIfexcecute(IBlock<E> consumer)<O> IOptional<O,java.lang.RuntimeException>excecute(ISupplier<O,java.lang.RuntimeException> supplier)<O,E extends java.lang.Exception>
IOptional<O,E>or(java.lang.Class<E> exceptionClass, ISupplier<O,E> supplier)<E extends java.lang.Exception>
IIfor(IBlock<E> consumer)<O> IOptional<O,java.lang.RuntimeException>or(ISupplier<O,java.lang.RuntimeException> supplier)
-
-
-
Method Detail
-
excecute
<O> IOptional<O,java.lang.RuntimeException> excecute(ISupplier<O,java.lang.RuntimeException> supplier)
-
excecute
<O,E extends java.lang.Exception> IOptional<O,E> excecute(java.lang.Class<E> exceptionClass, ISupplier<O,E> supplier) throws E extends java.lang.Exception
- Throws:
E extends java.lang.Exception
-
excecute
<E extends java.lang.Exception> IIf excecute(IBlock<E> consumer) throws E extends java.lang.Exception
- Throws:
E extends java.lang.Exception
-
or
<O> IOptional<O,java.lang.RuntimeException> or(ISupplier<O,java.lang.RuntimeException> supplier)
-
or
<O,E extends java.lang.Exception> IOptional<O,E> or(java.lang.Class<E> exceptionClass, ISupplier<O,E> supplier) throws E extends java.lang.Exception
- Throws:
E extends java.lang.Exception
-
-