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

7
LINES

< > BotCompany Repo | #1018578 // sortedByMapLookupCI - case-insensitive

JavaX fragment (include)

1  
static <A> L<A> sortedByMapLookupCI(Collection<A> l, final Map<A, S> map) {
2  
  ret sortedByComparator(l, new Comparator<A>() {
3  
    public int compare(A a, A b) {
4  
      ret ciCompare(map.get(a), map.get(b));
5  
    }
6  
  });
7  
}

Author comment

Began life as a copy of #1018577

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: #1018578
Snippet name: sortedByMapLookupCI - case-insensitive
Eternal ID of this version: #1018578/1
Text MD5: c3f6604a6476811fa1dacb296b72a5e7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-06 16:26:26
Source code size: 225 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 299 / 325
Referenced in: [show references]