TypeAlias, Result, Maybe and others for Java
Find a file
2017-11-26 11:35:25 +00:00
.mvn/wrapper Add maven-wrapper 2017-09-17 10:08:25 +01:00
.travis-support@b8593e541b Add travis-support submodule 2017-09-17 10:07:53 +01:00
src Make TypeAlias.getValue() private 2017-11-26 11:35:25 +00:00
.gitignore Functor<T> 2017-09-16 22:34:44 +01:00
.gitmodules Add travis-support submodule 2017-09-17 10:07:53 +01:00
.travis.yml .travis.yml: clean up unused env.global 2017-10-19 22:47:45 +01:00
CHANGELOG Prepare for 0.3.0 release 2017-10-19 22:54:27 +01:00
codesigning.asc.enc codesigning.asc.enc: added 2017-09-17 10:12:39 +01:00
LICENSE.txt Functor<T> 2017-09-16 22:34:44 +01:00
mvnw mvnw*: make executable 2017-09-17 10:31:35 +01:00
mvnw.cmd mvnw*: make executable 2017-09-17 10:31:35 +01:00
pom.xml Prepare for 0.3.0 release 2017-10-19 22:54:27 +01:00
README.md Prepare for 0.3.0 release 2017-10-19 22:54:27 +01:00

Mon

TypeAlias for Java

GitHub release Codacy Badge Build Status Coverage Status codecov

Maven

<dependency>
    <groupId>net.kemitix</groupId>
    <artifactId>mon</artifactId>
    <version>0.3.0</version>
</dependency>

Usage

TypeAlias

class Goal extends TypeAlias<String> {
    private Goal(final String goal) {
        super(goal);
    }
    public static Goal of(final String goal) {
        return new Goal(goal);
    }
}
Goal goal = Goal.of("goal");

void foo(final Goal goal) {
    System.out.println("The goal is " + goal.getValue());
}