Class TableModel.Cell<C>

java.lang.Object
io.guise.framework.model.TableModel.Cell<C>
Type Parameters:
C - The type of value contained in the cell.
Enclosing interface:
TableModel

public static class TableModel.Cell<C> extends Object
A lightweight class representing a row and column in a table. This class is useful as a map key, for instance.
Author:
Garret Wilson
  • Constructor Details

    • Cell

      public Cell(int rowIndex, TableColumnModel<C> column)
      Row and column constructor
      Parameters:
      rowIndex - The zero-based cell row index.
      column - The cell column.
      Throws:
      NullPointerException - if the given column is null.
  • Method Details

    • getRowIndex

      public int getRowIndex()
      Returns:
      The zero-based row index.
    • getColumn

      public TableColumnModel<C> getColumn()
      Returns:
      The column.
    • equals

      public boolean equals(Object object)
      Determines whether the given object is equal to this object.
      Overrides:
      equals in class Object
      Parameters:
      object - The object to compare to this object.
      Returns:
      true if the given object is another cell with the same row index and column.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      A hash code for the cell.