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 classEither.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 Aleft()static <A,B>
Either<A,B>newLeft(A a)static <A,B>
Either<A,B>newRight(B b)abstract Bright()abstract Either.Typetype()
-
-
-
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()
-
-