Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1024017 // switchIfLessInField

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (1615L/11K).

1  
static <A> A mapMethodLike switchIfLessInField(S field, A newOne, A oldOne) {
2  
  ret oldOne == null ? newOne
3  
    : newOne == null ? oldOne
4  
    : compareByField(field, newOne, oldOne) < 0 ? newOne : oldOne;
5  
}

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: 202 / 285
Version history: 3 change(s)
Referenced in: [show references]