Class RowColLocation

  • Direct Known Subclasses:
    DefaultRowColLocation

    public class RowColLocation
    extends java.lang.Object
    Simple class to return a row, column location.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int col  
      protected int row  
    • Constructor Summary

      Constructors 
      Constructor Description
      RowColLocation​(int row, int col)
      Constructs a new RowColLocation with the given row and column.
    • Field Detail

      • row

        protected int row
      • col

        protected int col
    • Constructor Detail

      • RowColLocation

        public RowColLocation​(int row,
                              int col)
        Constructs a new RowColLocation with the given row and column.
        Parameters:
        row - the row location
        col - the column location
    • Method Detail

      • row

        public int row()
      • col

        public int col()
      • toString

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

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

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object