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

3
LINES

< > BotCompany Repo | #1027812 // comparatorFromCalculatedField

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

Transpiled version (2488L) is out of date.

static <A, B> Comparator<A> lambdaMapLike comparatorFromCalculatedField(IF1<A, B> f) {
  ret f == null ? null : (a, b) -> cmp(f.get(a), f.get(b));
}

Author comment

Began life as a copy of #1006220

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027812
Snippet name: comparatorFromCalculatedField
Eternal ID of this version: #1027812/3
Text MD5: 3d58ce27de468553c4973c1d5493277d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-13 17:58:09
Source code size: 152 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 196 / 279
Version history: 2 change(s)
Referenced in: [show references]