mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8343125: Correct the documentation for TreeMap's getFloorEntry and getCeilingEntry
Reviewed-by: liach, acobbs
This commit is contained in:
parent
c59adf68d9
commit
e9e4200a6a
1 changed files with 6 additions and 8 deletions
|
@ -420,10 +420,9 @@ public class TreeMap<K,V>
|
|||
}
|
||||
|
||||
/**
|
||||
* Gets the entry corresponding to the specified key; if no such entry
|
||||
* exists, returns the entry for the least key greater than the specified
|
||||
* key; if no such entry exists (i.e., the greatest key in the Tree is less
|
||||
* than the specified key), returns {@code null}.
|
||||
* Returns the entry for the least key greater than or equal to the specified key;
|
||||
* if no such entry exists (i.e. the specified key is greater than any key in the tree,
|
||||
* or the tree is empty), returns {@code null}.
|
||||
*/
|
||||
final Entry<K,V> getCeilingEntry(K key) {
|
||||
Entry<K,V> p = root;
|
||||
|
@ -453,10 +452,9 @@ public class TreeMap<K,V>
|
|||
}
|
||||
|
||||
/**
|
||||
* Gets the entry corresponding to the specified key; if no such entry
|
||||
* exists, returns the entry for the greatest key less than the specified
|
||||
* key; if no such entry exists (i.e., the least key in the Tree is greater
|
||||
* than the specified key), returns {@code null}.
|
||||
* Returns the entry for the greatest key less than or equal to the specified key;
|
||||
* if no such entry exists (i.e. the specified key is less than any key in the tree,
|
||||
* or the tree is empty), returns {@code null}.
|
||||
*/
|
||||
final Entry<K,V> getFloorEntry(K key) {
|
||||
Entry<K,V> p = root;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue