T
- public abstract class AbstractCoolMapMatrix<T> extends java.lang.Object implements CoolMapMatrix<T>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getColumnId(int index)
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 |
getDescription() |
java.lang.String |
getId()
Get the ID of the data matrix
|
java.util.Optional<java.lang.Integer> |
getIndexOfColumnById(java.lang.String colId)
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 index)
Get row ID(label) at rowIndex
|
java.util.List<java.lang.String> |
getRowIds()
Get all row ids in a list ordered by row indices
|
abstract T |
getValue(int rowIndex,
int colIndex)
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 |
setColId(int index,
java.lang.String id) |
void |
setColIds(java.lang.String[] ids) |
void |
setDescription(java.lang.String description) |
void |
setName(java.lang.String name)
Set or rename the data matrix
|
void |
setRowId(int index,
java.lang.String id) |
void |
setRowIds(java.lang.String[] ids) |
abstract void |
setValue(int rowIndex,
int colIndex,
T value)
this could result in Array Index of of bounds exception
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canBeOverlaidTogether
public final java.lang.String getId()
CoolMapMatrix
getId
in interface CoolMapMatrix<T>
public abstract T getValue(int rowIndex, int colIndex)
CoolMapMatrix
getValue
in interface CoolMapMatrix<T>
rowIndex
- index of rowcolIndex
- index of columnpublic void setRowId(int index, java.lang.String id)
public void setColId(int index, java.lang.String id)
public java.lang.String getColumnId(int index) throws java.lang.IndexOutOfBoundsException
CoolMapMatrix
getColumnId
in interface CoolMapMatrix<T>
index
- index of columnjava.lang.IndexOutOfBoundsException
public java.lang.String getRowId(int index) throws java.lang.IndexOutOfBoundsException
CoolMapMatrix
getRowId
in interface CoolMapMatrix<T>
index
- index of rowjava.lang.IndexOutOfBoundsException
public boolean hasRow(java.lang.String rowId)
CoolMapMatrix
hasRow
in interface CoolMapMatrix<T>
rowId
- ID of rowpublic boolean hasColumn(java.lang.String columnId)
CoolMapMatrix
hasColumn
in interface CoolMapMatrix<T>
columnId
- ID of columnpublic java.util.Optional<java.lang.Integer> getIndexOfRowById(java.lang.String rowId)
CoolMapMatrix
getIndexOfRowById
in interface CoolMapMatrix<T>
rowId
- a row IDpublic java.util.Optional<java.lang.Integer> getIndexOfColumnById(java.lang.String colId)
CoolMapMatrix
getIndexOfColumnById
in interface CoolMapMatrix<T>
colId
- a column IDpublic int getNumberOfRows()
CoolMapMatrix
getNumberOfRows
in interface CoolMapMatrix<T>
public int getNumberOfColumns()
CoolMapMatrix
getNumberOfColumns
in interface CoolMapMatrix<T>
public abstract void setValue(int rowIndex, int colIndex, T value)
public final void setRowIds(java.lang.String[] ids)
public final void setColIds(java.lang.String[] ids)
public java.lang.String toString()
toString
in class java.lang.Object
public final java.util.List<java.lang.String> getRowIds()
CoolMapMatrix
getRowIds
in interface CoolMapMatrix<T>
public final java.util.List<java.lang.String> getColumnIds()
CoolMapMatrix
getColumnIds
in interface CoolMapMatrix<T>
public final java.lang.String getName()
CoolMapMatrix
getName
in interface CoolMapMatrix<T>
public final void setName(java.lang.String name)
CoolMapMatrix
setName
in interface CoolMapMatrix<T>
name
- name to be setpublic java.lang.Class<T> getMemberClass()
CoolMapMatrix
getMemberClass
in interface CoolMapMatrix<T>
public java.lang.String getDescription()
public void setDescription(java.lang.String description)