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

5
LINES

< > BotCompany Repo | #1037245 // isTreeMapWithComparator

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

Libraryless. Click here for Pure Java version (59L/1K).

static <A, B> bool isTreeMapWithComparator(Map<A, B> map, Comparator<A> comparator) {
  if (map cast TreeMap && eq(map.comparator(), comparator))
    true;
  false;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1037245
Snippet name: isTreeMapWithComparator
Eternal ID of this version: #1037245/2
Text MD5: b25f643461e0af96765f6db86ca0fb7c
Transpilation MD5: 63a75a4d59a81c4d87d904ef11c416ad
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-08-26 02:02:27
Source code size: 170 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 89 / 132
Version history: 1 change(s)
Referenced in: [show references]