Returns the greatest key less than or equal to the given key. Returns null if no such key exists.
Example:
var map = new TreeMap<string,string> ((a, b) => {
return strcmp (a, b);
});
map.put ("a", "1");
map.put ("c", "3");
map.put ("e", "5");
assert (map.floorKey ("d") == "c");
assert (map.floorKey ("c") == "c");
| key |
the reference key. |
|
the floor key, or null if none. |