edu.jhu.tmaj.util.file
Interface TableArray<C,T>
- All Superinterfaces:
- java.lang.Cloneable
- All Known Implementing Classes:
- TableArrayImpl
public interface TableArray<C,T>
- extends java.lang.Cloneable
Method Summary |
void |
addColumn(C columnObj)
|
void |
addRow()
|
void |
addRow(java.util.List<T> row)
|
void |
clearAll()
|
void |
clearRows()
|
TableArray<C,T> |
clone()
|
boolean |
equals(java.lang.Object obj)
|
T |
getCell(int row,
C columnObj)
|
T |
getCell(int row,
int columnNumber)
|
C |
getColumn(int columnNumber)
|
java.util.List<C> |
getColumns()
|
java.util.List<T> |
getRow(int rowNumber)
|
java.util.List<java.util.List<T>> |
getRows()
|
int |
getVerifiedColumnIndex(C column)
|
int |
hashCode()
|
void |
insertColumn(int index,
C columnObj)
|
int |
numberOfColumns()
|
int |
numberOfRows()
|
void |
removeColumn(C columnObj)
|
void |
removeColumn(int columnNumber)
|
void |
removeRow(int rowNumber)
|
void |
setCell(int rowNumber,
C columnObj,
T cellObj)
|
void |
setCell(int rowNumber,
int columnNumber,
T cellObj)
|
void |
setColumn(int columnNumber,
C columnObj)
|
void |
setColumns(java.util.List<C> newColumns)
|
void |
setRow(int rowNumber,
java.util.List<T> row)
|
void |
setRows(java.util.List<java.util.List<T>> rows)
|
setColumns
void setColumns(java.util.List<C> newColumns)
addColumn
void addColumn(C columnObj)
insertColumn
void insertColumn(int index,
C columnObj)
removeColumn
void removeColumn(int columnNumber)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException
removeColumn
void removeColumn(C columnObj)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException
setColumn
void setColumn(int columnNumber,
C columnObj)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException
getVerifiedColumnIndex
int getVerifiedColumnIndex(C column)
getColumns
java.util.List<C> getColumns()
getColumn
C getColumn(int columnNumber)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException
clone
TableArray<C,T> clone()
setCell
void setCell(int rowNumber,
int columnNumber,
T cellObj)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException
setCell
void setCell(int rowNumber,
C columnObj,
T cellObj)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException
getCell
T getCell(int row,
int columnNumber)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException
getCell
T getCell(int row,
C columnObj)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException
setRows
void setRows(java.util.List<java.util.List<T>> rows)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException
setRow
void setRow(int rowNumber,
java.util.List<T> row)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException
getRow
java.util.List<T> getRow(int rowNumber)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException
addRow
void addRow()
addRow
void addRow(java.util.List<T> row)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException
removeRow
void removeRow(int rowNumber)
throws java.lang.ArrayIndexOutOfBoundsException
- Throws:
java.lang.ArrayIndexOutOfBoundsException
getRows
java.util.List<java.util.List<T>> getRows()
numberOfRows
int numberOfRows()
numberOfColumns
int numberOfColumns()
clearRows
void clearRows()
clearAll
void clearAll()
equals
boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
int hashCode()
- Overrides:
hashCode
in class java.lang.Object