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 classEither.Type
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Aleft()static <A,B>
Either<A,B>left(A value)<C> Cmap(Function<? super A,? extends C> left, Function<? super B,? extends C> right)abstract Bright()static <A,B>
Either<A,B>right(B value)StringtoString()abstract Either.Typetype()
-
-
-
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)
-
-