Libraryless. Click here for Pure Java version (106L/1K).
1 | static <A, B> Pair<A, B> floorPair(NavigableMap<A, B> map, A key) { |
2 | if (map == null) null; |
3 | var e = map.floorEntry(key); |
4 | ret mapEntryToPair(e); |
5 | } |
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: | 140 / 197 |
Referenced in: | [show references] |