Releases: pnerg/java-scala-util
v1.4
This release includes functionality such as:
- Future
- apply - that takes an Executor as an argument
- transform
- recover
- Option
- toLeft
- toRight
- Try
- filter
- recover
- recoverWith
- ExecutorProvider - Allows for creating a custom Executor for Executors.getDefault()
Full list of enhancements from milestone: Milestone 1.4
Java Doc for the release can be found @ JavaDoc 1.4
v1.3
This release includes functionality such as:
- Future
- apply
- transform
- recover
- Promise
- complete
- completeWith
- try_NNN_ for completing a promise without throwing exceptions should it already be completed
- Try
- apply
Added a new functional interface ThrowableFunction0 that allows for composing Lambda expressions that throw checked exceptions.
New Scala type companion classes allowing for instance creation Scala style without using the new keyword.
Single line statements for executing an asynchronous computation returning the Future with the value-to-be...no additional hassle with threads or ugly locks.
Future<Integer> future = Future(() -> 9/3); // The Future will at some point contain: Success(3)
Wrap a Lambda expression into a Try completely managing any try/catch related code rendering in neat single line statements for generating Try compositions.
Try<Integer> success = Try(() -> 9/3); //Will be Success(3);
Try<Integer> fail = Try(() -> 0/9) //Will be Failure(ArithmethicException)
Full list of enhancements at from milestone: Milestone 1.3
Java Doc for the release can be found @ JavaDoc 1.3
v1.2
This release includes the concept of Promise/Future allowing for neat concise asynchronous computations.
v.1.1
Released support for
Either/Left/Right