Package org.infinispan.commons.util
Class Either<A,B>
- java.lang.Object
-
- org.infinispan.commons.util.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
-
Constructor Summary
Constructors Constructor Description Either()
-
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>newLeft(A a)
static <A,B>
Either<A,B>newRight(B b)
abstract B
right()
abstract Either.Type
type()
-
-
-
Method Detail
-
newLeft
public static <A,B> Either<A,B> newLeft(A a)
-
newRight
public static <A,B> Either<A,B> newRight(B b)
-
type
public abstract Either.Type type()
-
left
public abstract A left()
-
right
public abstract B right()
-
-