Package io.guise.framework.model
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 java.lang.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 Summary
Constructors Constructor Description Cell(int rowIndex, TableColumnModel<C> column)
Row and column constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
Determines whether the given object is equal to this object.TableColumnModel<C>
getColumn()
int
getRowIndex()
int
hashCode()
-
-
-
Constructor Detail
-
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:
java.lang.NullPointerException
- if the given column is null.
-
-
Method Detail
-
getRowIndex
public int getRowIndex()
- Returns:
- The zero-based row index.
-
getColumn
public TableColumnModel<C> getColumn()
- Returns:
- The column.
-
equals
public boolean equals(java.lang.Object object)
Determines whether the given object is equal to this object.- Overrides:
equals
in classjava.lang.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 classjava.lang.Object
- Returns:
- A hash code for the cell.
-
-