Libraryless. Click here for Pure Java version (30L/1K).
static <A, B> B higherValue(NavigableMap<A, B> map, A key) { if (map == null) null; var e = map.higherEntry(key); ret e == null ?: e.getValue(); }
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: | #1033272 | 
| Snippet name: | higherValue - value of higherEntry | 
| Eternal ID of this version: | #1033272/1 | 
| Text MD5: | d635bf63e339d4c03d2efe820fdf34ad | 
| Transpilation MD5: | b7a00ee8a36937877f4027373eff2843 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2021-10-18 04:19:15 | 
| Source code size: | 156 bytes / 5 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 340 / 436 | 
| Referenced in: | [show references] |