Package de.redsix.dmncheck.util
Class Eithers
- java.lang.Object
-
- de.redsix.dmncheck.util.Eithers
-
public final class Eithers extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEithers.CaseOfMatchers
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A,B>
Eithers.CaseOfMatchers.TotalMatcher_Left<A,B>caseOf(Either<A,B> either)static <A,B>
Optional<A>getLeft(Either<A,B> either)static <A,B>
Optional<B>getRight(Either<A,B> either)static <A,B>
Either<A,B>left(A left)static <A,B>
Either<A,B>right(B right)
-
-
-
Method Detail
-
left
public static <A,B> Either<A,B> left(A left)
-
right
public static <A,B> Either<A,B> right(B right)
-
caseOf
public static <A,B> Eithers.CaseOfMatchers.TotalMatcher_Left<A,B> caseOf(Either<A,B> either)
-
-