March 2014
Intermediate to advanced
1200 pages
31h 17m
English
Exploring Sorted Maps
TreeMap is an example of a sorted map, which is a map that maintains its entries in ascending order, sorted according to the keys’ natural ordering or according to a comparator that is supplied when the sorted map is created. Sorted maps are described by the SortedMap interface.
SortedMap (whose generic type is SortedMap<K, V>) extends Map. With two exceptions, the methods it inherits from Map behave identically on sorted maps as on other maps:
Note Although not guaranteed, ...
Read now
Unlock full access