static <A> A lastWhereIC(L<A> l, S field, S value) { for (int i = l(l)-1; i >= 0; i--) { A a = l.get(i); if (eqic_gen(getOpt(a, field), value)) ret a; } null; }
Began life as a copy of #1020920
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022024 |
| Snippet name: | lastWhereIC - get last element that matches a string field (ignoring case) |
| Eternal ID of this version: | #1022024/3 |
| Text MD5: | 55e02c95dd42efaef016893927f35e8c |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-05 21:44:42 |
| Source code size: | 187 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 510 / 529 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |