Class Failure<E>

java.lang.Object
pl.matsuo.core.util.function.Failure<E>
All Implemented Interfaces:
Try<E>

public class Failure<E> extends Object implements Try<E>
  • Constructor Details

    • Failure

      public Failure()
  • Method Details

    • get

      public E get()
      Specified by:
      get in interface Try<E>
    • ifFailure

      public Try<E> ifFailure(Supplier<Try<E>> supplier)
      Specified by:
      ifFailure in interface Try<E>
    • isFailure

      public boolean isFailure()
      Specified by:
      isFailure in interface Try<E>