Class If.OrElse

java.lang.Object
com.landawn.abacus.util.If.OrElse
Enclosing class:
If

public static final class If.OrElse extends Object
The Class OrElse.
  • Field Details

    • TRUE

      public static final If.OrElse TRUE
      For internal only
    • FALSE

      public static final If.OrElse FALSE
      For internal only
  • Method Details

    • orElse

      public <E extends Throwable> void orElse(Throwables.Runnable<E> cmd) throws E
      Type Parameters:
      E -
      Parameters:
      cmd -
      Throws:
      E - the e
    • orElse

      public <U, E extends Throwable> void orElse(U init, Throwables.Consumer<? super U,E> action) throws E
      Type Parameters:
      U -
      E -
      Parameters:
      init -
      action -
      Throws:
      E - the e
    • orElseThrow

      public <E extends Throwable> void orElseThrow(Supplier<? extends E> exceptionSupplier) throws E
      Or else throw.
      Type Parameters:
      E -
      Parameters:
      exceptionSupplier -
      Throws:
      E - the e