Interface IIf

  • All Known Implementing Classes:
    If

    public interface IIf
    • 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
      • or

        <E extends java.lang.Exception> IIf or​(IBlock<E> consumer)
                                        throws E extends java.lang.Exception
        Throws:
        E extends java.lang.Exception