public interface CoolMapMatrix<T>
Modifier and Type | Method and Description |
---|---|
default boolean |
canBeOverlaidTogether(CoolMapMatrix<T> matrix2)
Check if this data matrix can overlay with another data matrix
|
java.lang.String |
getColumnId(int columnIndex)
Get column ID(label) at columnIndex
|
java.util.List<java.lang.String> |
getColumnIds()
Get all column ids in a list ordered by column indices
|
java.lang.String |
getId()
Get the ID of the data matrix
|
java.util.Optional<java.lang.Integer> |
getIndexOfColumnById(java.lang.String columnId)
Given the ID of a column, looking for its index in the data matrix
|
java.util.Optional<java.lang.Integer> |
getIndexOfRowById(java.lang.String rowId)
Given the ID of a row, looking for its index in the data matrix
|
java.lang.Class<T> |
getMemberClass()
Get data type of the data matrix
|
java.lang.String |
getName()
Get data matrix name
|
int |
getNumberOfColumns()
Get number of columns in the data matrix
|
int |
getNumberOfRows()
Get number of rows in the data matrix
|
java.lang.String |
getRowId(int rowIndex)
Get row ID(label) at rowIndex
|
java.util.List<java.lang.String> |
getRowIds()
Get all row ids in a list ordered by row indices
|
T |
getValue(int rowIndex,
int columnIndex)
Get value at (rowIndex, columnIndex) from the data matrix
|
boolean |
hasColumn(java.lang.String columnId)
Check if the specified column ID is a valid
|
boolean |
hasRow(java.lang.String rowId)
Check if the specified row ID is a valid one
|
void |
setName(java.lang.String newName)
Set or rename the data matrix
|
T getValue(int rowIndex, int columnIndex)
rowIndex
- index of rowcolumnIndex
- index of columnjava.lang.String getRowId(int rowIndex)
rowIndex
- index of rowjava.lang.String getColumnId(int columnIndex)
columnIndex
- index of columnboolean hasRow(java.lang.String rowId)
rowId
- ID of rowboolean hasColumn(java.lang.String columnId)
columnId
- ID of columnjava.util.Optional<java.lang.Integer> getIndexOfRowById(java.lang.String rowId)
rowId
- a row IDjava.util.Optional<java.lang.Integer> getIndexOfColumnById(java.lang.String columnId)
columnId
- a column IDint getNumberOfRows()
int getNumberOfColumns()
java.util.List<java.lang.String> getRowIds()
java.util.List<java.lang.String> getColumnIds()
java.lang.Class<T> getMemberClass()
java.lang.String getName()
void setName(java.lang.String newName)
newName
- name to be setjava.lang.String getId()
default boolean canBeOverlaidTogether(CoolMapMatrix<T> matrix2)
matrix2
- another data matrix