Class Table<T>
java.lang.Object
com.ibm.wala.util.tables.Table<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final SimpleVector
<String> protected final ArrayList
<SimpleVector<T>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int[]
getColumnHeading
(int i) Note that column indices start at zerogetElement
(int row, int column) int
int
static void
padWithSpaces
(StringBuilder b, int length) void
row2Map
(int row) toString()
-
Field Details
-
rows
-
columnHeadings
-
-
Constructor Details
-
Table
public Table()create an empty table -
Table
create an empty table with the same column headings as t- Throws:
IllegalArgumentException
- if t == null
-
Table
create an empty table with the given column headings- Throws:
IllegalArgumentException
- if columns == null, or columns[i] == null for some i
-
-
Method Details
-
toString
-
getElement
-
getColumnHeading
Note that column indices start at zero -
computeColumnWidths
public int[] computeColumnWidths() -
getNumberOfColumns
public int getNumberOfColumns() -
getNumberOfRows
public int getNumberOfRows() -
row2Map
-
addRow
-
removeRow
-
padWithSpaces
-