Class Either<A,B>

java.lang.Object
org.infinispan.commons.util.Either<A,B>

public abstract class Either<A,B> extends Object
  • Constructor Details

    • Either

      public Either()
  • Method Details

    • 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()