@@ -420,10 +420,9 @@ else if (cmp > 0)
420
420
}
421
421
422
422
/**
423
- * Gets the entry corresponding to the specified key; if no such entry
424
- * exists, returns the entry for the least key greater than the specified
425
- * key; if no such entry exists (i.e., the greatest key in the Tree is less
426
- * than the specified key), returns {@code null}.
423
+ * Returns the entry for the least key greater than or equal to the specified key;
424
+ * if no such entry exists (i.e. the specified key is greater than any key in the tree,
425
+ * or the tree is empty), returns {@code null}.
427
426
*/
428
427
final Entry <K ,V > getCeilingEntry (K key ) {
429
428
Entry <K ,V > p = root ;
@@ -453,10 +452,9 @@ final Entry<K,V> getCeilingEntry(K key) {
453
452
}
454
453
455
454
/**
456
- * Gets the entry corresponding to the specified key; if no such entry
457
- * exists, returns the entry for the greatest key less than the specified
458
- * key; if no such entry exists (i.e., the least key in the Tree is greater
459
- * than the specified key), returns {@code null}.
455
+ * Returns the entry for the greatest key less than or equal to the specified key;
456
+ * if no such entry exists (i.e. the specified key is less than any key in the tree,
457
+ * or the tree is empty), returns {@code null}.
460
458
*/
461
459
final Entry <K ,V > getFloorEntry (K key ) {
462
460
Entry <K ,V > p = root ;
0 commit comments