public interface SortedMap<K,V> extends Map<K,V>
| Modifier and Type | Method and Description | 
|---|---|
Entry<K,V> | 
ceilingEntry(K key)
Returns the entry with least key greater than or equal to given key
 (or null if no such key exists). 
 | 
Entry<K,V> | 
firstEntry()
Returns the entry having the least key (or null if map is empty). 
 | 
Entry<K,V> | 
floorEntry(K key)
Returns the entry with greatest key less than or equal to given key
 (or null if no such key exists). 
 | 
Entry<K,V> | 
higherEntry(K key)
Returns the entry with least key strictly greater than given key
 (or null if no such key exists). 
 | 
Entry<K,V> | 
lastEntry()
Returns the entry having the greatest key (or null if map is empty). 
 | 
Entry<K,V> | 
lowerEntry(K key)
Returns the entry with greatest key strictly less than given key
 (or null if no such key exists). 
 | 
Iterable<Entry<K,V>> | 
subMap(K fromKey,
      K toKey)
Returns an iterable containing all keys in the range from
  
fromKey inclusive to toKey exclusive. | 
Entry<K,V> firstEntry()
Entry<K,V> lastEntry()
Entry<K,V> ceilingEntry(K key) throws IllegalArgumentException
IllegalArgumentException - if the key is not compatible with the mapEntry<K,V> floorEntry(K key) throws IllegalArgumentException
IllegalArgumentException - if the key is not compatible with the mapEntry<K,V> lowerEntry(K key) throws IllegalArgumentException
IllegalArgumentException - if the key is not compatible with the mapEntry<K,V> higherEntry(K key) throws IllegalArgumentException
IllegalArgumentException - if the key is not compatible with the mapIterable<Entry<K,V>> subMap(K fromKey, K toKey) throws IllegalArgumentException
fromKey inclusive to toKey exclusive.IllegalArgumentException - if fromKey or toKey is not compatible with the map