Libraryless. Click here for Pure Java version (3275L/20K).
1 | static LongTreeSet longTreeSetWithComparator(Comparator<Long> comparator) {
|
2 | ret new LongTreeSet {
|
3 | public int compare(long a, long b) {
|
4 | ret comparator.compare(a, b); |
5 | } |
6 | }; |
7 | } |
8 | |
9 | ifclass LongComparator |
10 | static LongTreeSet longTreeSetWithComparator(LongComparator comparator) {
|
11 | ret new LongTreeSet {
|
12 | public int compare(long a, long b) {
|
13 | ret comparator.compare(a, b); |
14 | } |
15 | }; |
16 | } |
17 | 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: | 454 / 594 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |