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 enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract A
     
    static <A, B> Either<A,B>
    newLeft(A a)
     
    static <A, B> Either<A,B>
    newRight(B b)
     
    abstract B
     
    abstract Either.Type
     
  • 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()