Skip to content
Peter Nerg edited this page Dec 8, 2017 · 19 revisions

Introduction

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.

Requirements

Java 8 is required as the code builds heavily on Lambda and the new functional interfaces provided with Java 8.

Download

The binaries can be downloaded from Maven Central.

Maven

<dependency>
    <groupId>org.dmonix.functional</groupId>
    <artifactId>java-scala-utils</artifactId>
    <version>1.9</version>
</dependency>

Ivy

<dependency org="org.dmonix.functional" name="java-scala-utils" rev="1.9"/>

Gradle

compile 'org.dmonix.functional:java-scala-utils:1.9'
Clone this wiki locally