| java.util.SortedMap<K, V> |
Known Indirect Subclasses
TreeMap<K, V>
|
SortedMap is a Map where the iterators sequence in order of the sorted keys.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the Comparator used to compare elements in this SortedMap.
| |||||||||||
Answer the first sorted key in this SortedMap.
| |||||||||||
Returns a
SortedMap of the specified portion of this
SortedMap which contains keys less than the end key. | |||||||||||
Returns the last sorted key in this SortedMap.
| |||||||||||
Returns a SortedMap of the specified portion of this SortedMap which
contains keys greater or equal to the start key but less than the end
key.
| |||||||||||
Returns a SortedMap of the specified portion of this SortedMap which
contains keys greater or equal to the start key.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface java.util.Map
| |||||||||||
Returns the Comparator used to compare elements in this SortedMap.
Answer the first sorted key in this SortedMap.
| NoSuchElementException | when this SortedMap is empty |
|---|
Returns a SortedMap of the specified portion of this
SortedMap which contains keys less than the end key. Users
should be aware that the return value is actually backed by this
SortedMap. Hence any modifications made to one will be
immediately visible to the other.
| endKey | the end key |
|---|
endKey| ClassCastException | when the class of the end key is inappropriate for this SubMap |
|---|---|
| NullPointerException | when the end key is null and this SortedMap does not support null keys |
Returns the last sorted key in this SortedMap.
| NoSuchElementException | when this SortedMap is empty |
|---|
Returns a SortedMap of the specified portion of this SortedMap which
contains keys greater or equal to the start key but less than the end
key. Users should be aware that the return value is actually backed by
this SortedMap. Hence any modifications made to one will
be immediately visible to the other.
| startKey | the start key |
|---|---|
| endKey | the end key |
startKey and less than endKey| ClassCastException | when the class of the start or end key is inappropriate for this SubMap |
|---|---|
| NullPointerException | when the start or end key is null and this SortedMap does not support null keys |
| IllegalArgumentException | when the start key is greater than the end key |
Returns a SortedMap of the specified portion of this SortedMap which contains keys greater or equal to the start key. The returned SortedMap is backed by this SortedMap so changes to one are reflected by the other.
| startKey | the start key |
|---|
startKey| ClassCastException | when the class of the start key is inappropriate for this SubMap |
|---|---|
| NullPointerException | when the start key is null and this SortedMap does not support null keys |