Class DelegatingPair<L,​R>

  • All Implemented Interfaces:
    Pair<L,​R>

    public abstract class DelegatingPair<L,​R>
    extends java.lang.Object
    implements Pair<L,​R>
    An abstract Pair which delegates to another Pair.
    • Constructor Summary

      Constructors 
      Constructor Description
      DelegatingPair​(Pair<L,​R> delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      L left()
      The left value of the pair, i.e. the 1st value in this 2-tuple.
      R 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

      • DelegatingPair

        public DelegatingPair​(Pair<L,​R> delegate)
    • Method Detail

      • left

        public final L 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<L,​R>
      • right

        public final R 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<L,​R>