Class Pair<L,​R>

  • Type Parameters:
    L - Type of Left Object
    R - Type of Right Object

    public class Pair<L,​R>
    extends java.lang.Object
    Simple class to hold a pair of objects

    See this for original

    Version:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(L l, R r)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      L getL()  
      R getR()  
      void setL​(L l)  
      void setR​(R r)  
      • Methods inherited from class java.lang.Object

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

      • Pair

        public Pair​(L l,
                    R r)
    • Method Detail

      • getL

        public L getL()
        Returns:
        Left object in this Pair
      • getR

        public R getR()
        Returns:
        Right object in this Pair
      • setL

        public void setL​(L l)
        Parameters:
        l - New left object
      • setR

        public void setR​(R r)
        Parameters:
        r - New right object