/*
a b c d
0 *
1 *
2 * *
3 *
*/
Table<Integer,String,String> table = HashBasedTable.create(); //双key-value的结构 双key 与 value 都不可重复
table.put(0,"a","*");
table.put(1,"a","*");
table.put(1,"a","*");
table.put(2,"b","*");
table.put(2,"c","*");
table.put(3,"b","*");
log.info("table.rowKeySet() = {}",table.rowKeySet());
log.info("table.columnKeySet() = {}",table.columnKeySet());
log.info("table.cellSet() = {}",table.cellSet());
log.info("table.rowMap() = {}",table.rowMap());
log.info("table.columnMap() = {}",table.columnMap());
//结果
20:29:17.546 [main] INFO - table.rowKeySet() = [0, 1, 2, 3]
20:29:17.583 [main] INFO - table.columnKeySet() = [a, b, c]
20:29:17.585 [main] INFO - table.cellSet() = [(0,a)=*, (1,a)=*, (2,b)=*, (2,c)=*, (3,b)=*]
20:29:17.592 [main] INFO - table.rowMap() = {0={a=*}, 1={a=*}, 2={b=*, c=*}, 3={b=*}}
20:29:17.597 [main] INFO - table.columnMap() = {a={0=*, 1=*}, b={2=*, 3=*}, c={2=*}}