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

15
LINES

< > BotCompany Repo | #1030411 // multiSetMap_innerCustomIntPairTreeSet_outerRevTreeMap

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

Libraryless. Click here for Pure Java version (3671L/22K).

static <A> MultiSetMap<A, IntPair> multiSetMap_innerCustomIntPairTreeSet_outerRevTreeMap(Comparator<IntPair> innerComparator) {
  MultiSetMap<A, IntPair> m = new MultiSetMap<A, IntPair>() {
    Set<IntPair> _makeEmptySet() { ret intPairTreeSetWithComparator(innerComparator); }
  };
  m.data = revTreeMap();
  ret m;
}

static <A> MultiSetMap<A, IntPair> multiSetMap_innerCustomIntPairTreeSet_outerRevTreeMap(LongComparator innerComparator) {
  MultiSetMap<A, IntPair> m = new MultiSetMap<A, IntPair>() {
    Set<IntPair> _makeEmptySet() { ret intPairTreeSetWithComparator(innerComparator); }
  };
  m.data = revTreeMap();
  ret m;
}

Author comment

Began life as a copy of #1029171

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1030411
Snippet name: multiSetMap_innerCustomIntPairTreeSet_outerRevTreeMap
Eternal ID of this version: #1030411/5
Text MD5: 6edbf8026fad3d6ccd4a488cbd67e0c1
Transpilation MD5: bb5241d2a16b30ac4a3a957f3a6844ef
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-13 18:02:11
Source code size: 647 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 169 / 252
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)