TypeAlias, Result, Maybe and others for Java
Find a file
2017-10-19 22:50:39 +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 TypeAlias: prevent map() from being overridden 2017-10-19 18:45:45 +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 .travis.yml: clean up unused env.global 2017-10-19 22:47:45 +01:00
CHANGELOG Prepare for 0.2.0 release 2017-10-19 19:38: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 pom.xml: revert kemitix-parent to 3.2.4 2017-10-19 22:38:23 +01:00
README.md README.md: add TypeAlias heading 2017-10-19 22:19:07 +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

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