1 | static <A> A reverseLookupCI(S value, Map<A, S> map) { |
2 | ret reverseLookupCI(map, value); |
3 | } |
4 | |
5 | static <A> A reverseLookupCI(Map<A, S> map, S value) { |
6 | if (map != null && value != null) for (A key : map.keySet()) |
7 | if (eqic(map.get(key), value)) |
8 | ret key; |
9 | ret null; |
10 | } |
Began life as a copy of #1002303
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1016016 |
Snippet name: | reverseLookupCI - look up a key from a value, case-insensitive |
Eternal ID of this version: | #1016016/3 |
Text MD5: | 30ad0ffd0b8ab03c6344bfcb87065855 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-02 23:03:16 |
Source code size: | 283 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 403 / 415 |
Version history: | 2 change(s) |
Referenced in: | [show references] |