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

7
LINES

< > BotCompany Repo | #1018349 // calculatedFieldComparator

JavaX fragment (include)

1  
static <A> Comparator<A> calculatedFieldComparator(fO f) {
2  
  ret new Comparator<A>() {
3  
    public int compare(A a, A b) {
4  
      ret cmp(callF(f, a), callF(f, b));
5  
    }
6  
  };
7  
}

Author comment

Began life as a copy of #1013536

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018349
Snippet name: calculatedFieldComparator
Eternal ID of this version: #1018349/1
Text MD5: 1b33059152f2dadee9b43af1a846d73a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-20 04:35:50
Source code size: 181 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 336 / 374
Referenced in: [show references]