[**Map.Entry**](<https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**ceilingEntry**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#ceilingEntry-K->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) key) Returns a key-value mapping associated with the least key greater than or equal to the given key, or null if there is no such key. |
K |
[**ceilingKey**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#ceilingKey-K->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) key) Returns the least key greater than or equal to the given key, or null if there is no such key. |
void |
[**clear**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#clear-->)() Removes all of the mappings from this map. |
Object |
[**clone**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#clone-->)() Returns a shallow copy of this TreeMap instance. |
[**Comparator**](<https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html>)<? super [**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**comparator**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#comparator-->)() Returns the comparator used to order the keys in this map, or null if this map uses the natural ordering of its keys. |
boolean |
[**containsKey**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#containsKey-java.lang.Object->)([**Object**](<https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html>) key) Returns true if this map contains a mapping for the specified key. |
boolean |
[**containsValue**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#containsValue-java.lang.Object->)([**Object**](<https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html>) value) Returns true if this map maps one or more keys to the specified value. |
[**NavigableSet**](<https://docs.oracle.com/javase/8/docs/api/java/util/NavigableSet.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**descendingKeySet**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#descendingKeySet-->)() Returns a reverse order NavigableSet view of the keys contained in this map. |
[**NavigableMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/NavigableMap.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**descendingMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#descendingMap-->)() Returns a reverse order view of the mappings contained in this map. |
[**Set**](<https://docs.oracle.com/javase/8/docs/api/java/util/Set.html>)<[**Map.Entry**](<https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)>> |
[**entrySet**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#entrySet-->)() Returns a Set view of the mappings contained in this map. |
[**Map.Entry**](<https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**firstEntry**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#firstEntry-->)() Returns a key-value mapping associated with the least key in this map, or null if the map is empty. |
K |
[**firstKey**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#firstKey-->)() Returns the first (lowest) key currently in this map. |
[**Map.Entry**](<https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**floorEntry**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#floorEntry-K->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) key) Returns a key-value mapping associated with the greatest key less than or equal to the given key, or null if there is no such key. |
K |
[**floorKey**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#floorKey-K->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) key) Returns the greatest key less than or equal to the given key, or null if there is no such key. |
void |
[**forEach**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#forEach-java.util.function.BiConsumer->)([**BiConsumer**](<https://docs.oracle.com/javase/8/docs/api/java/util/function/BiConsumer.html>)<? super [**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),? super [**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> action) Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. |
V |
[**get**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#get-java.lang.Object->)([**Object**](<https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html>) key) Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. |
[**SortedMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/SortedMap.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**headMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#headMap-K->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) toKey) Returns a view of the portion of this map whose keys are strictly less than toKey . |
[**NavigableMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/NavigableMap.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**headMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#headMap-K-boolean->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) toKey, boolean inclusive) Returns a view of the portion of this map whose keys are less than (or equal to, if inclusive is true) toKey . |
[**Map.Entry**](<https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**higherEntry**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#higherEntry-K->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) key) Returns a key-value mapping associated with the least key strictly greater than the given key, or null if there is no such key. |
K |
[**higherKey**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#higherKey-K->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) key) Returns the least key strictly greater than the given key, or null if there is no such key. |
[**Set**](<https://docs.oracle.com/javase/8/docs/api/java/util/Set.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**keySet**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#keySet-->)() Returns a Set view of the keys contained in this map. |
[**Map.Entry**](<https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**lastEntry**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#lastEntry-->)() Returns a key-value mapping associated with the greatest key in this map, or null if the map is empty. |
K |
[**lastKey**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#lastKey-->)() Returns the last (highest) key currently in this map. |
[**Map.Entry**](<https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**lowerEntry**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#lowerEntry-K->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) key) Returns a key-value mapping associated with the greatest key strictly less than the given key, or null if there is no such key. |
K |
[**lowerKey**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#lowerKey-K->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) key) Returns the greatest key strictly less than the given key, or null if there is no such key. |
[**NavigableSet**](<https://docs.oracle.com/javase/8/docs/api/java/util/NavigableSet.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**navigableKeySet**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#navigableKeySet-->)() Returns a NavigableSet view of the keys contained in this map. |
[**Map.Entry**](<https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**pollFirstEntry**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#pollFirstEntry-->)() Removes and returns a key-value mapping associated with the least key in this map, or null if the map is empty. |
[**Map.Entry**](<https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**pollLastEntry**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#pollLastEntry-->)() Removes and returns a key-value mapping associated with the greatest key in this map, or null if the map is empty. |
V |
[**put**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#put-K-V->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) key, [**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) value) Associates the specified value with the specified key in this map. |
void |
[**putAll**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#putAll-java.util.Map->)([**Map**](<https://docs.oracle.com/javase/8/docs/api/java/util/Map.html>)<? extends [**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),? extends [**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> map) Copies all of the mappings from the specified map to this map. |
V |
[**remove**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#remove-java.lang.Object->)([**Object**](<https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html>) key) Removes the mapping for this key from this TreeMap if present. |
V |
[**replace**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#replace-K-V->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) key, [**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) value) Replaces the entry for the specified key only if it is currently mapped to some value. |
boolean |
[**replace**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#replace-K-V-V->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) key, [**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) oldValue, [**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) newValue) Replaces the entry for the specified key only if currently mapped to the specified value. |
void |
[**replaceAll**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#replaceAll-java.util.function.BiFunction->)([**BiFunction**](<https://docs.oracle.com/javase/8/docs/api/java/util/function/BiFunction.html>)<? super [**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),? super [**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),? extends [**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> function) Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception. |
int |
[**size**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#size-->)() Returns the number of key-value mappings in this map. |
[**NavigableMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/NavigableMap.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**subMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#subMap-K-boolean-K-boolean->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) fromKey, boolean fromInclusive, [**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) toKey, boolean toInclusive) Returns a view of the portion of this map whose keys range from fromKey to toKey . |
[**SortedMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/SortedMap.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**subMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#subMap-K-K->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) fromKey, [**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) toKey) Returns a view of the portion of this map whose keys range from fromKey , inclusive, to toKey , exclusive. |
[**SortedMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/SortedMap.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**tailMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#tailMap-K->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) fromKey) Returns a view of the portion of this map whose keys are greater than or equal to fromKey . |
[**NavigableMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/NavigableMap.html>)<[**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>),[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**tailMap**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#tailMap-K-boolean->)([**K**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>) fromKey, boolean inclusive) Returns a view of the portion of this map whose keys are greater than (or equal to, if inclusive is true) fromKey . |
[**Collection**](<https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html>)<[**V**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html>)> |
[**values**](<https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html#values-->)() Returns a Collection view of the values contained in this map. |