public interface SortedMultiMap<K,V> extends MultiMap<K,V>
MultiMap that provides a total ordering for the keys. All keys
intersted must implement the Comparable interface.| Modifier and Type | Method and Description |
|---|---|
Comparator<? super K> |
comparator()
Returns the comparator used to order the keys in this map, or null if
this map uses the
natural ordering of its keys. |
K |
firstKey()
Returns a
Set view of the mappings contained in this map. |
SortedMultiMap<K,V> |
headMap(K toKey)
Returns a view of the portion of this map whose keys are less than
toKey. |
K |
lastKey()
Returns the last (highest) key currently in this map.
|
SortedMultiMap<K,V> |
subMap(K fromKey,
K toKey)
Returns a view of the portion of this map whose keys range from
fromKey, inclusive, to toKey, exclusive. |
SortedMultiMap<K,V> |
tailMap(K fromKey)
Returns a view of the portion of this map whose keys are greater than or
equal to
fromKey. |
Comparator<? super K> comparator()
natural ordering of its keys.SortedMultiMap<K,V> headMap(K toKey)
toKey.K lastKey()
SortedMultiMap<K,V> subMap(K fromKey, K toKey)
fromKey, inclusive, to toKey, exclusive.SortedMultiMap<K,V> tailMap(K fromKey)
fromKey.Copyright © 2012. All Rights Reserved.