TypeAlias, Result, Maybe and others for Java
Find a file
2017-09-30 16:46:49 +01: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 entities: add static builder and constructors and make previous revision Optional 2017-09-30 16:46:49 +01: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 Add travis-support submodule 2017-09-17 10:07:53 +01:00
CHANGELOG version: set to 0.1.0 2017-09-17 10:37:15 +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 version: set to 0.2.0-SNAPSHOT 2017-09-18 20:13:35 +01:00
README.md README.md: added 2017-09-17 10:28:43 +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>${mon.version}</version>
</dependency>

Usage

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());
}