
Java中的TreeMap。
TreeMap is implemented by black-red tree.
Useful Method
- return a map
- subMap(fromKey, true, toKey, true)
- tailMap(fromKey, true)
- headMap(toKey, true)
- return a key
- ceilingKey(lowerBound): >= lowerBound
- floorKey(upperBound): <= upperBound
- higherKey(lowerBound): > lowerBound
- lowerKey(upperBound): < upperBound
- firstKey()
- lastKey()




近期评论