Class Position


  • public class Position
    extends Object
    Represents a screenRows, column location
    • Constructor Detail

      • Position

        public Position​(int row,
                        int col)
        Constructs a new Position instance
        Parameters:
        row - the position row
        col - the position column
    • Method Detail

      • getRow

        public int getRow()
        Returns the row of this position instance
        Returns:
        the row of this position instance
      • getCol

        public int getCol()
        Returns the column of this position instance
        Returns:
        the column of this position instance
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object