Class Point


  • public final class Point
    extends java.lang.Object
    An immutable point in cell coordinates.
    • Constructor Summary

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

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

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Point

        public Point​(int x,
                     int y)
        Creates a point.
        Parameters:
        x - x coordinate in cells
        y - y coordinate in cells
    • Method Detail

      • x

        public int x()
        Returns:
        the x coordinate in cells
      • y

        public int y()
        Returns:
        the y coordinate in cells
      • equals

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

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

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