이것은 의도적으로 설계된 것입니까?Guava TreeRow의 TreeBasedTable은 SortedMap을 구현하지만 정렬되지 않았습니다?
Map<String, Map<String, String>> rowMap = treeTable.rowMap();
Map<String, String> notSortedTreeRow = rowMap.get(rowId);
는 rowMap은 (SortedMap와 같은)가 정렬되지만 notSortedTreeRow이다 (TreeRow) 열 값] 정렬 가질 수있을 수 있도록 ?
편집 : 그것은 내 잘못, 나는 정수의 String 표현을했고 나는 그것을 지나치게 단순화 경우 숫자 문자열이 같은
뭔가 :-) 숫자 값을 기준으로 비교 하였다 인상에 있던 :
TreeBasedTable<String, String, String> table = TreeBasedTable.create();
table.put("1", "8", "x");
table.put("1", "9", "x");
table.put("1", "10", "x");
Map<String,String> map = table.rowMap().get("1");
각 treeRow에 대해 새 TreeMap을 할당하지 않고 TreeRow를 정렬하는 방법을 알지 못합니다. – lisak
[이 질문] (http://stackoverflow.com/questions/7001582/java-sort-a-guava-treebasedtable?rq=1)이 도움이됩니까? –