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


< > BotCompany Repo | #1004923 - findWhere - get first element that matches a data condition (fields+values)

JavaX fragment (include)

static <A> A findWhere(Collection<A> c, O... data) {
  if (c != null) for (A x : c)
    if (checkFields(x, data))
      ret x;
  ret null;

Author comment

Began life as a copy of #1004370

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz, 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: 356 / 340
Version history: 1 change(s)
Referenced in: [show references]

Formerly at &