Clone
Lóránt Pintér
committed
on 30 Jul
Tidy up Try
- map() and flatMap() now both throw exceptions that happen during the execution of the given function
- tryMap() is introduced … Show more
Tidy up Try

- map() and flatMap() now both throw exceptions that happen during the execution of the given function

- tryMap() is introduced to turn any exception thrown during the given function's invocation into a failed Try

- orElseMapFailure() is renamed to getOrMapFailure()

- getSuccessfulOrElse() is replaced with tryMap().orElseMapFailure()

Plus a few bits of polish.

Added Javadoc.

Show less

master + 103 more