Interface Pair<Left,Right>

All Known Implementing Classes:
DelegatingPair, LeftSidedPair, RightSidedPair, ValuePair

public interface Pair<Left,Right>
A pair of typed values, a tuple of two (also called ordered pair).
  • Method Summary

    Modifier and Type
    Method
    Description
    The left value of the pair, i.e. the 1st value in this 2-tuple.
    The right value of the pair, i.e. the 2nd value in this 2-tuple.
  • Method Details

    • left

      Left left()
      The left value of the pair, i.e. the 1st value in this 2-tuple.
    • right

      Right right()
      The right value of the pair, i.e. the 2nd value in this 2-tuple.