Class Tuple<A,​B>

  • Type Parameters:
    A - type of the left node
    B - type of the right node

    public class Tuple<A,​B>
    extends java.lang.Object
    Tuple data structure to represent a pair
    • Constructor Summary

      Constructors 
      Constructor Description
      Tuple​(A left, B right)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      A getLeft()
      Retrieve the left node object
      B getRight()
      Retrieve the right node object
      • Methods inherited from class java.lang.Object

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

      • Tuple

        public Tuple​(A left,
                     B right)
    • Method Detail

      • getLeft

        public A getLeft()
        Retrieve the left node object
        Returns:
        left node
      • getRight

        public B getRight()
        Retrieve the right node object
        Returns:
        right node