Libraryless. Click here for Pure Java version (3275L/20K).
static LongTreeSet longTreeSetWithComparator(Comparator<Long> comparator) { ret new LongTreeSet { public int compare(long a, long b) { ret comparator.compare(a, b); } }; } ifclass LongComparator static LongTreeSet longTreeSetWithComparator(LongComparator comparator) { ret new LongTreeSet { public int compare(long a, long b) { ret comparator.compare(a, b); } }; } endif
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030408 |
Snippet name: | longTreeSetWithComparator |
Eternal ID of this version: | #1030408/3 |
Text MD5: | 03567e3c69e03be21b204754962d365f |
Transpilation MD5: | c852d578c08b58613ca7c704747cc385 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-12-13 17:32:19 |
Source code size: | 423 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 202 / 295 |
Version history: | 2 change(s) |
Referenced in: | [show references] |