1 | static <A> A findWhere(Collection<A> c, O... data) { |
2 | if (c != null) for (A x : c) |
3 | if (checkFields(x, data)) |
4 | ret x; |
5 | ret null; |
6 | } |
Began life as a copy of #1004370
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1004923 |
Snippet name: | findWhere - get first element that matches a data condition (fields+values) |
Eternal ID of this version: | #1004923/2 |
Text MD5: | 5849acd1ec1a2aed655ade63a1a27d76 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-10 16:12:49 |
Source code size: | 145 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 655 / 645 |
Version history: | 1 change(s) |
Referenced in: | [show references] |