Class LeftSidedPair<Left,​Right>

  • All Implemented Interfaces:
    Pair<Left,​Optional<Right>>

    public final class LeftSidedPair<Left,​Right>
    extends java.lang.Object
    implements Pair<Left,​Optional<Right>>
    A Pair with an absent right element.
    • Constructor Summary

      Constructors 
      Constructor Description
      LeftSidedPair​(Left left)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Left left()
      The left value of the pair, i.e. the 1st value in this 2-tuple.
      Optional<Right> right()
      The right value of the pair, i.e. the 2nd value in this 2-tuple.
      • Methods inherited from class java.lang.Object

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

      • LeftSidedPair

        public LeftSidedPair​(Left left)
    • Method Detail

      • left

        public Left left()
        Description copied from interface: Pair
        The left value of the pair, i.e. the 1st value in this 2-tuple.
        Specified by:
        left in interface Pair<Left,​Right>
      • right

        public Optional<Right> right()
        Description copied from interface: Pair
        The right value of the pair, i.e. the 2nd value in this 2-tuple.
        Specified by:
        right in interface Pair<Left,​Right>