Class Table<T>
java.lang.Object
com.ibm.wala.util.tables.Table<T>
- Direct Known Subclasses:
StringTable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SimpleVector<String> protected final ArrayList<SimpleVector<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidint[]getColumnHeading(int i) Note that column indices start at zerogetElement(int row, int column) intintstatic voidpadWithSpaces(StringBuilder b, int length) voidrow2Map(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
-