Class Location

  • Direct Known Subclasses:
    Location

    public class Location
    extends java.lang.Object
    Auxiliary structure to store tile location on the well. The top left tile has coordinates (1,1).
    • Constructor Summary

      Constructors 
      Constructor Description
      Location​(int row, int column)
      Note: The top left tile has coordinates (1,1).
    • Constructor Detail

      • Location

        public Location​(int row,
                        int column)
        Note: The top left tile has coordinates (1,1).
    • Method Detail

      • getRow

        public int getRow()
      • getColumn

        public int getColumn()
      • equals

        public boolean equals​(java.lang.Object obj)
        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