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

3
LINES

< > BotCompany Repo | #1018114 // isCISet - is collection a case-insensitive set?

JavaX fragment (include)

sbool isCISet(Iterable<S> l) {
  ret l instanceof TreeSet && ((TreeSet) l).comparator() == caseInsensitiveComparator();
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018114
Snippet name: isCISet - is collection a case-insensitive set?
Eternal ID of this version: #1018114/3
Text MD5: f3bca57b0e97dff985de5328ce0bab33
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-10 17:08:27
Source code size: 123 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 370 / 513
Version history: 2 change(s)
Referenced in: [show references]