Libraryless. Click here for Pure Java version (1615L/11K).
static <A> A mapMethodLike switchIfLessInField(S field, A newOne, A oldOne) { ret oldOne == null ? newOne : newOne == null ? oldOne : compareByField(field, newOne, oldOne) < 0 ? newOne : oldOne; }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1024017 |
| Snippet name: | switchIfLessInField |
| Eternal ID of this version: | #1024017/4 |
| Text MD5: | 29b0e780b979559d13a8c67c0f7822df |
| Transpilation MD5: | 8b2b2078dce5a52a4e83b74c1514be58 |
| Author: | stefan |
| Category: | javax / optimization |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-07-16 00:42:19 |
| Source code size: | 210 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 398 / 530 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |