Class Either<L,​R>


  • public class Either<L,​R>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Either​(L left)  
      Either​(L left, R right)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.util.Optional<L> getLeft()  
      java.util.Optional<R> getRight()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Either

        public Either​(L left)
      • Either

        public Either​(L left,
                      R right)
    • Method Detail

      • getLeft

        public java.util.Optional<L> getLeft()
      • getRight

        public java.util.Optional<R> getRight()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object