Package org.springframework.shell.table
Class ArrayTableModel
java.lang.Object
org.springframework.shell.table.TableModel
org.springframework.shell.table.ArrayTableModel
A TableModel backed by a row-first array.
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.shell.table.TableModel
transpose
-
Constructor Details
-
ArrayTableModel
-
-
Method Details
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in classTableModel
- Returns:
- the number of rows that can be queried.
Values between 0 and
rowCount-1
inclusive are valid values.
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in classTableModel
- Returns:
- the number of columns that can be queried.
Values between 0 and
columnCount-1
inclusive are valid values.
-
getValue
- Specified by:
getValue
in classTableModel
- Parameters:
row
- the row that is being queriedcolumn
- the column that is being queried- Returns:
- the data value to be displayed at a given row and column, which may be null.
-