Class RightSidedPair<Left,Right>

java.lang.Object
org.dmfs.jems2.pair.RightSidedPair<Left,Right>
All Implemented Interfaces:
Pair<Optional<Left>,Right>

public final class RightSidedPair<Left,Right> extends Object implements Pair<Optional<Left>,Right>
A Pair with an absent left element.
  • Constructor Details

    • RightSidedPair

      public RightSidedPair(Right right)
  • Method Details

    • left

      public Optional<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 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>