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

7
LINES

< > BotCompany Repo | #1031062 // isSortedListByCalculatedField

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

Libraryless. Click here for Pure Java version (2774L/16K).

static <A, B> bool isSortedListByCalculatedField(Cl<A> l, IF1<A, B> f) {
  ret isSortedListByComparator(l, (a, b) -> cmp(f.get(a), f.get(b)));
}

static <A, B> bool lambdaMapLike isSortedListByCalculatedField(IF1<A, B> f, Cl<A> l) {
  ret isSortedListByCalculatedField(l, f);
}

Author comment

Began life as a copy of #1031061

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031062
Snippet name: isSortedListByCalculatedField
Eternal ID of this version: #1031062/5
Text MD5: e1ca61ca6ca6f63c41f7d9a3fee8a14d
Transpilation MD5: 0604d098a78d2d2b4806b1137c49e150
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-26 17:17:26
Source code size: 283 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 136 / 183
Version history: 4 change(s)
Referenced in: [show references]