- failure() - Method in class com.github.charithe.fjp.Try
-
Returns the failure value if this is a failure.
- filter(Predicate<T>) - Method in class com.github.charithe.fjp.Try
-
Apply the predicate to the success value to determine whether this should really be a failure
- flatMap(Function<T, Try<A>>) - Method in class com.github.charithe.fjp.Try
-
Perform a flatmap over this instance
- foreach(Consumer<T>) - Method in class com.github.charithe.fjp.Try
-
Apply the supplied function to the success value if this is a success
- fromFailure(Throwable) - Static method in class com.github.charithe.fjp.Try
-
Create a failure instance of Try
- fromSuccess(A) - Static method in class com.github.charithe.fjp.Try
-
Create a success instance of Try