|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
E - public interface TableCoreImmutable<E>
This TableCoreImmutable provides core methods which do not change the Table structure.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.omnaest.utils.structure.table.subspecification.TableCloneable |
|---|
TableCloneable.TableCloner<E> |
| Method Summary | ||
|---|---|---|
Iterable<Table.Cell<E>> |
cells()
Iterable for the Tables Table.Cells. |
|
Iterable<Table.Column<E>> |
columns()
Iterable over all Table.Columns |
|
boolean |
contains(E element)
Returns true, if the whole Table contains the given element. |
|
|
convert(Table.TableCellConverter<E,TO> tableCellConverter)
Converts the current Table into a new Table instance with another element type. |
|
boolean |
equals(TableCoreImmutable<E> table)
Compares the data of two Table instances, if they are the same true is returned. |
|
Table.Cell<E> |
getCell(int cellIndexPosition)
Returns the Table.Cell determined by the given Table.Cell index position. |
|
Table.Cell<E> |
getCell(int rowIndexPosition,
int columnIndexPosition)
Resolves the Table.Cell for the given index positions. |
|
Table.Cell<E> |
getCell(int rowIndexPosition,
Object columnTitleValue)
|
|
Table.Cell<E> |
getCell(Object rowTitleValue,
int columnIndexPosition)
|
|
Table.Cell<E> |
getCell(String rowTitleValue,
String columnTitleValue)
|
|
E |
getCellElement(int cellIndexPosition)
Returns the Table.CellImmutable.getElement() for the given Table.Cell index position |
|
E |
getCellElement(int rowIndexPosition,
int columnIndexPosition)
Resolves an element from the table at the given index positions. |
|
List<E> |
getCellElementList()
Returns a new List of all Table.Cell instances of the Table serialized . |
|
List<Table.Cell<E>> |
getCellList()
Returns a to the table backed list of all cells. |
|
Table.Column<E> |
getColumn(int columnIndexPosition)
Returns a Table.Column for the given Table.Column index position. |
|
Table.Column<E> |
getColumn(Object columnTitleValue)
Returns a Table.Column for the given Table.Column title value. |
|
List<Table.Column<E>> |
getColumnList()
Returns a List of all Table.Columns |
|
Object |
getColumnTitleValue(int columnIndexPosition)
|
|
List<Object> |
getColumnTitleValueList()
Returns a new List of all Table.Columns Table.Stripe.Title.getValue() for the Table. |
|
Table.Column<E> |
getFirstColumn()
Returns the first Table.Column of the Table |
|
Table.Row<E> |
getFirstRow()
Returns the first Table.Row of the Table |
|
Table.Column<E> |
getLastColumn()
Returns the last Table.Column of the Table |
|
Table.Row<E> |
getLastRow()
Returns the last Table.Row of the Table |
|
Table.Row<E> |
getRow(int rowIndexPosition)
Returns a new list that holds the object of the row pointed to. |
|
Table.Row<E> |
getRow(Object rowTitleValue)
Returns a Table.Row of the Table identified by the title of a row. |
|
List<Table.Row<E>> |
getRowList()
Returns a List of all Table.Rows |
|
Object |
getRowTitleValue(int rowIndexPosition)
|
|
List<Object> |
getRowTitleValueList()
Returns a new List with all the Table.Stripe.getTitleValue() for the Table. |
|
Object |
getTableName()
Returns the name for the whole table. |
|
Table.TableSize |
getTableSize()
Returns a Table.TableSize object for the table. |
|
boolean |
hasColumnTitles()
Returns true if at least one Table.Column has a Table.Stripe.Title |
|
boolean |
hasRowTitles()
Returns true if at least one Table.Row has a Table.Stripe.Title |
|
boolean |
hasTableName()
Returns true if the getTableName() is not null |
|
Iterator<Table.Row<E>> |
iterator()
The same as #iteratorRow() |
|
Iterator<Table.Cell<E>> |
iteratorCell()
Returns an Iterator that goes through every Table.Column for every Table.Row. |
|
Iterator<Table.Column<E>> |
iteratorColumn()
Returns an Iterator over all Table.Columns |
|
Table<E> |
processTableCells(Table.TableCellVisitor<E> tableCellVisitor)
Helper method to do arbitrary stuff on the Table Table.Cells. |
|
ListIterable<Table.Row<E>> |
rows()
ListIterable over all Table.Rows |
|
| Methods inherited from interface org.omnaest.utils.structure.table.subspecification.TableCloneable |
|---|
clone |
| Method Detail |
|---|
boolean equals(TableCoreImmutable<E> table)
Table instances, if they are the same true is returned.
List<Object> getRowTitleValueList()
List with all the Table.Stripe.getTitleValue() for the Table.
getRowTitleValueList in interface TableDataSource<E>getRowTitleValue(int)Object getRowTitleValue(int rowIndexPosition)
rowIndexPosition -
getRowTitleValueList()List<Object> getColumnTitleValueList()
List of all Table.Columns Table.Stripe.Title.getValue() for the Table.
getColumnTitleValueList in interface TableDataSource<E>getColumnTitleValue(int)Object getColumnTitleValue(int columnIndexPosition)
columnIndexPosition -
getColumnTitleValueList()Table.TableSize getTableSize()
Table.TableSize object for the table. The object will have always actual results, that will change if the data of
the Table is changed.
Object getTableName()
getTableName in interface TableDataSource<E>
E getCellElement(int rowIndexPosition,
int columnIndexPosition)
rowIndexPosition - columnIndexPosition -
getCellElement(int)E getCellElement(int cellIndexPosition)
Table.CellImmutable.getElement() for the given Table.Cell index position
cellIndexPosition -
getCellElement(int, int),
getCellElementList()List<E> getCellElementList()
List of all Table.Cell instances of the Table serialized .
getCellElement(int)
Table.Cell<E> getCell(int rowIndexPosition,
int columnIndexPosition)
Table.Cell for the given index positions.
rowIndexPosition - columnIndexPosition -
Table.Cell<E> getCell(int cellIndexPosition)
Table.Cell determined by the given Table.Cell index position. The Table.Cell index position starts with 0
and increases horizontally with each Table.Column and this through every single Table.Row down to the bottom of the
Table. Returns null if the Table.Cell index position is out of Table bounds.
cellIndexPosition -
Table.Cell<E> getCell(String rowTitleValue,
String columnTitleValue)
rowTitleValue - columnTitleValue -
getCell(int, int)
Table.Cell<E> getCell(Object rowTitleValue,
int columnIndexPosition)
rowTitleValue - columnIndexPosition -
getCell(int, int)
Table.Cell<E> getCell(int rowIndexPosition,
Object columnTitleValue)
rowIndexPosition - columnTitleValue -
getCell(int, int)List<Table.Cell<E>> getCellList()
TableCoreTable.Row<E> getRow(int rowIndexPosition)
rowIndexPosition -
List<Table.Row<E>> getRowList()
List of all Table.Rows
Table.Row<E> getRow(Object rowTitleValue)
Table.Row of the Table identified by the title of a row. Before this can be used, the titles have to be
set by #setRowTitleValues(List)
rowTitleValue -
getRow(int)Table.Column<E> getColumn(int columnIndexPosition)
Table.Column for the given Table.Column index position.
columnIndexPosition -
getColumn(Object)List<Table.Column<E>> getColumnList()
List of all Table.Columns
Table.Column<E> getColumn(Object columnTitleValue)
Table.Column for the given Table.Column title value. The Table.Column titles have to be set before with
#setColumnTitleValues(List)
columnTitleValue -
getColumn(int)Table.Row<E> getLastRow()
Table.Row of the Table
Table.Column<E> getLastColumn()
Table.Column of the Table
Table.Row<E> getFirstRow()
Table.Row of the Table
Table.Column<E> getFirstColumn()
Table.Column of the Table
boolean contains(E element)
Table contains the given element.
element -
Iterator<Table.Cell<E>> iteratorCell()
Iterator that goes through every Table.Column for every Table.Row. Starting from left to right and
then downwards all the Table.Rows.
#iteratorRow(),
iterator()Iterable<Table.Cell<E>> cells()
Iterable for the Tables Table.Cells.
iteratorCell()ListIterable<Table.Row<E>> rows()
ListIterable over all Table.Rows
rows in interface TableDataSource<E>Iterable<Table.Column<E>> columns()
Iterable over all Table.Columns
Iterator<Table.Column<E>> iteratorColumn()
Iterator over all Table.Columns
Iterator<Table.Row<E>> iterator()
#iteratorRow()
#iteratorRow(),
iteratorCell()<TO> Table<TO> convert(Table.TableCellConverter<E,TO> tableCellConverter)
Table into a new Table instance with another element type.
tableCellConverter -
Table.TableCellConverterTable<E> processTableCells(Table.TableCellVisitor<E> tableCellVisitor)
Table Table.Cells. The processor loops through every Table.Column of
each Table.Row, giving a visitor the possibility to do various actions.
tableCellVisitor - Table.TableCellVisitorboolean hasColumnTitles()
Table.Column has a Table.Stripe.Title
boolean hasRowTitles()
Table.Row has a Table.Stripe.Title
boolean hasTableName()
getTableName() is not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||