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

17
LINES

< > BotCompany Repo | #1030408 - longTreeSetWithComparator

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

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   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

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: 23 / 43
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1030408 & http://1030408.tinybrain.de