-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Peter Nerg edited this page Dec 8, 2017
·
19 revisions
The aim with these utility classes is to provide neat and concise programming patterns.
Each construct is explained with examples on their own page.
The following three types are all what is known as container types.
They represent various use cases, such as containing one or zero value (Option), one of two values (Either) and value or exception (Try)
For proper decoupling when performing asynchronous operations the Promise/Future concept is introduced.
Java 8 is required as the code builds heavily on Lambda and the new functional interfaces provided with Java 8.
The binaries can be downloaded from Maven Central.
<dependency>
<groupId>org.dmonix.functional</groupId>
<artifactId>java-scala-utils</artifactId>
<version>1.9</version>
</dependency>
<dependency org="org.dmonix.functional" name="java-scala-utils" rev="1.9"/>
compile 'org.dmonix.functional:java-scala-utils:1.9'
- Introduction
- JavaDoc (Latest)
- Containers
- Option/Some/None
- Try/Success/Failure
- Either/Left/Right
- Asynchronous Execution
- Future/Promise
- Companion Classes
- The Unit Type
- Testing/Asserts
- License
- Chat room for the project:
- Continuous Integration: