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

3
LINES

< > BotCompany Repo | #1012403 // isCIMap - is it a case-insensitive map?

JavaX fragment (include)

static bool isCIMap(Map m) {
  ret m instanceof TreeMap && ((TreeMap) m).comparator() == caseInsensitiveComparator();
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012403
Snippet name: isCIMap - is it a case-insensitive map?
Eternal ID of this version: #1012403/5
Text MD5: a4693d5fcf99c9a3a3ef6a6cc727ce75
Author: stefan
Category: javax / collections
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-31 07:41:08
Source code size: 121 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 397 / 410
Version history: 4 change(s)
Referenced in: [show references]