Methods Summary |
---|
public java.util.Comparator | comparator()Returns the comparator used to compare keys in this sorted map.
|
public K | firstKey()Returns the first key in this sorted map.
|
public java.util.SortedMap | headMap(K endKey)Returns a sorted map over a range of this sorted map with all keys that
are less than the specified {@code endKey}. Changes to the returned
sorted map are reflected in this sorted map and vice versa.
Note: The returned map will not allow an insertion of a key outside the
specified range.
|
public K | lastKey()Returns the last key in this sorted map.
|
public java.util.SortedMap | subMap(K startKey, K endKey)Returns a sorted map over a range of this sorted map with all keys
greater than or equal to the specified {@code startKey} and less than the
specified {@code endKey}. Changes to the returned sorted map are
reflected in this sorted map and vice versa.
Note: The returned map will not allow an insertion of a key outside the
specified range.
|
public java.util.SortedMap | tailMap(K startKey)Returns a sorted map over a range of this sorted map with all keys that
are greater than or equal to the specified {@code startKey}. Changes to
the returned sorted map are reflected in this sorted map and vice versa.
Note: The returned map will not allow an insertion of a key outside the
specified range.
|