public class Table<K,V>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
label1 |
protected java.lang.String |
label2 |
java.util.LinkedHashMap<K,V> |
table |
protected java.lang.String |
tableName |
Modifier | Constructor and Description |
---|---|
protected |
Table() |
|
Table(java.lang.String tableName,
java.lang.String label1,
java.lang.String label2) |
Modifier and Type | Method and Description |
---|---|
void |
add(K v1,
V v2)
Basic add row inside the table.
|
V |
lookup(K v)
Basic lookup inside the table.
|
void |
mergeTable(Table t)
Merging another table to current one.
|
void |
print()
Basic print of the table.
|
void |
remove(K v1)
Basic remove element/row inside the table.
|
protected java.lang.String tableName
protected java.lang.String label1
protected java.lang.String label2
protected Table()
public Table(java.lang.String tableName, java.lang.String label1, java.lang.String label2)