Libraryless. Click here for Pure Java version (59L/1K).
1 | static <A, B> bool isTreeMapWithComparator(Map<A, B> map, Comparator<A> comparator) { |
2 | if (map cast TreeMap && eq(map.comparator(), comparator)) |
3 | true; |
4 | false; |
5 | } |
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: | 164 / 231 |
Version history: | 1 change(s) |
Referenced in: | [show references] |