Class Position


  • public class Position
    extends Object
    Position class. Contains row and column of the position.
    Since:
    0.1.0
    Version:
    1.0.0
    Author:
    Andrew SASSOYE
    • Constructor Detail

      • Position

        public Position()
        Constructor
      • Position

        public Position​(int row,
                        int column)
        Constructor
        Parameters:
        row - initial row
        column - initial column
    • Method Detail

      • equals

        public boolean equals​(Object o)
        Equals method
        Overrides:
        equals in class Object
        Parameters:
        o - Object to compare with.
        Returns:
        true if they are equal, false if not.
      • hashCode

        public int hashCode()
        HashCode method
        Overrides:
        hashCode in class Object
        Returns:
        hash code.
      • getRow

        public int getRow()
        Row getter
        Returns:
        row
      • getColumn

        public int getColumn()
        Column getter
        Returns:
        column