Class Point


  • @API(type=NOT_EXTENDABLE,
         src=PRIVATE)
    public class Point
    extends java.lang.Object
    A point with X and Y coordinates..
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int x
      The 'x' coordinate.
      int y
      The 'y' coordinate.
    • Constructor Summary

      Constructors 
      Constructor Description
      Point​(int x, int y)
      Creates a new Point.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • x

        public int x
        The 'x' coordinate.
      • y

        public int y
        The 'y' coordinate.
    • Constructor Detail

      • Point

        public Point​(int x,
                     int y)
        Creates a new Point.
        Parameters:
        x - X coord.
        y - Y coord.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • toString

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