Class Success<E>

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

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

    • Success

      public Success(E value)
  • 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>
    • isSuccess

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