npublic interface SortedMap<K,
V> extends Map<K, V> {
n // Range-view
n
SortedMap<K, V>
subMap(K fromKey, K toKey);
n SortedMap<K, V> headMap(K toKey);
n SortedMap<K, V> tailMap(K fromKey);
n
n // Endpoints
n K firstKey();
n K lastKey();
n
n // Comparator access
n Comparator<? super K> comparator();
n
n}