static <A> Map<S, A> indexByFieldCI(Iterable<A> c, S field) { Map<S, A> map = ciMap(); for (A a : c) { S val = getString(a, field); if (val != null) map.put(val, a); } ret map; } static <A> Map<S, A> mapMethodLike indexByFieldCI(S field, Iterable c) { ret indexByFieldCI(c, field); }
Began life as a copy of #1002467
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020913 |
Snippet name: | indexByFieldCI - returns CI map |
Eternal ID of this version: | #1020913/1 |
Text MD5: | f51ccd56bdb8943f150611468ca5dcd7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-09 21:18:53 |
Source code size: | 320 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 271 / 310 |
Referenced in: | [show references] |