Package owl.collections
Class Either<A,B>
- java.lang.Object
-
- owl.collections.Either<A,B>
-
public abstract class Either<A,B> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Either.Type
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract A
left()
static <A,B>
Either<A,B>left(A value)
<C> C
map(Function<? super A,? extends C> left, Function<? super B,? extends C> right)
abstract B
right()
static <A,B>
Either<A,B>right(B value)
String
toString()
abstract Either.Type
type()
-
-
-
Method Detail
-
type
public abstract Either.Type type()
-
left
public abstract A left()
-
right
public abstract B right()
-
left
public static <A,B> Either<A,B> left(A value)
-
right
public static <A,B> Either<A,B> right(B value)
-
map
public final <C> C map(Function<? super A,? extends C> left, Function<? super B,? extends C> right)
-
-