Libraryless. Click here for Pure Java version (55L/1K).
1 | static <A> A navigableSet_find(NavigableSet<A> set, A a) {
|
2 | if (set == null || a == null) null; |
3 | A b = set.floor(a); |
4 | ret b != null && sortedSet_compare(set, a, b) == 0 ? b : null; |
5 | } |
Began life as a copy of #1027806
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027808 |
| Snippet name: | navigableSet_find |
| Eternal ID of this version: | #1027808/2 |
| Text MD5: | 6364bb2fd5e6f09bc59aaf1103d648c3 |
| Transpilation MD5: | 1d954e9ad115a967f94c1dc831609ea7 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-04-19 10:13:35 |
| Source code size: | 189 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 415 / 580 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |