Libraryless. Click here for Pure Java version (106L/1K).
static <A, B> Pair<A, B> floorPair(NavigableMap<A, B> map, A key) { if (map == null) null; var e = map.floorEntry(key); ret mapEntryToPair(e); }
Began life as a copy of #1033270
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033283 |
| Snippet name: | floorPair |
| Eternal ID of this version: | #1033283/1 |
| Text MD5: | 2f136a831971c70cdb4247c0d8254ab9 |
| Transpilation MD5: | 1677d103157970d70352ef737f00fd03 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-18 07:53:12 |
| Source code size: | 154 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 359 / 459 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1033284 - higherPair |