Libraryless. Click here for Pure Java version (3358L/21K).
static IntPairTreeSet intPairTreeSetWithComparator(Comparator<IntPair> comparator) { ret new IntPairTreeSet { @Override public int compare(long a, long b) { ret comparator.compare(longToIntPair(a), longToIntPair(b)); } }; } ifclass LongComparator static IntPairTreeSet intPairTreeSetWithComparator(LongComparator comparator) { ret new IntPairTreeSet { @Override public int compare(long a, long b) { ret comparator.compare(a, b); } }; } endif
Began life as a copy of #1030408
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030410 |
| Snippet name: | intPairTreeSetWithComparator |
| Eternal ID of this version: | #1030410/3 |
| Text MD5: | e531c6263f98e702f7c2b1f72c9232aa |
| Transpilation MD5: | 093c37e5d66529e4d60f71ab4da6ad2e |
| 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:37 |
| Source code size: | 494 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 396 / 533 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |