Samples of code with and without Javaslang.
Inspired by Javaslang documentation and "Javaslang - functional Java done right" presentation by Grzegorz Piwowarek.
./gradlew clean test
is the main command to run tests.
The application is meant to be built with Java 8.
In case of any problems please note that application was verified on:
- Oracle Java SE 1.8.0_66
- Apple OS X 10.11.5
- git 2.9.0
Javaslang has many features. Below there is a To Do list with list of those features. Every feature covered by samples in this project is marked as done.
- tuples
- functions: composition
- functions: lifting
- functions: currying
- functions: memoization
- values:
Option
- values:
Try
- values:
Lazy
- values:
Either
- values:
Future
- values:
Validation
- collections:
List
- collections:
Stream
- property checking
- pattern matching
-
javaslang-match
module -
javaslang-test
module -
javaslang-pure
module -
javaslang-circuitbreaker
module -
javaslang-jackson
module -
javaslang-render
module