|
Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SortedMap
SortedMap is a Map where the iterators sequence in order of the sorted keys.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry |
| Method Summary | |
|---|---|
Comparator |
comparator()
Answers the Comparator used to compare elements in this SortedMap. |
Object |
firstKey()
Answer the first sorted key in this SortedMap. |
SortedMap |
headMap(Object endKey)
Answers a SortedMap of the specified portion of this SortedMap which contains keys less than the end key. |
Object |
lastKey()
Answers the last sorted key in this SortedMap. |
SortedMap |
subMap(Object startKey,
Object endKey)
Answers 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. |
SortedMap |
tailMap(Object startKey)
Answers a SortedMap of the specified portion of this SortedMap which contains keys greater or equal to the start key. |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Method Detail |
|---|
Comparator comparator()
Object firstKey()
NoSuchElementException - when this SortedMap is emptySortedMap headMap(Object endKey)
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 keysObject lastKey()
NoSuchElementException - when this SortedMap is emptySortedMap subMap(Object startKey,
Object endKey)
startKey - the start keyendKey - 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 keySortedMap tailMap(Object startKey)
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
|
Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||