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

3
LINES

< > BotCompany Repo | #1024018 // compareByField

JavaX fragment (include)

static int mapMethodLike compareByField(S field, O a, O b) {
  ret cmp(getOpt(a, field), getOpt(b, field));
}

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: #1024018
Snippet name: compareByField
Eternal ID of this version: #1024018/1
Text MD5: fc94845657fdb04c025f456f97303918
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-16 00:41:34
Source code size: 111 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 206 / 225
Referenced in: [show references]