Class Tuple<X,​Y>

  • Type Parameters:
    X - the x coordinate (usually a Number but may be also a String etc.)
    Y - the y coordinate (usually a Number but may be also a String etc.)
    Direct Known Subclasses:
    DoublePoint, DoublePointError

    public class Tuple<X,​Y>
    extends java.lang.Object
    Author:
    rstein
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected X x  
      protected Y y  
    • Constructor Summary

      Constructors 
      Constructor Description
      Tuple​(X x, Y y)  
    • Field Detail

      • x

        protected transient X x
      • y

        protected transient Y y
    • Constructor Detail

      • Tuple

        public Tuple​(X x,
                     Y y)
        Parameters:
        x - the x coordinate (usually a Number but may be also a String etc.)
        y - the y coordinate (usually a Number but may be also a String etc.)
    • Method Detail

      • getXValue

        public X getXValue()
        Returns:
        the x coordinate
      • getYValue

        public Y getYValue()
        Returns:
        the y coordinate
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object