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

13
LINES

< > BotCompany Repo | #1021792 // firstWithClassShortNamed

JavaX fragment (include)

static <A> A firstWithClassShortNamed(S shortName, Iterable<A> l) {
  if (l != null) for (A o : l)
    if (eq(shortClassName(o), shortName))
      ret o;
  null;
}

static <A> A firstWithClassShortNamed(S shortName, A[] l) {
  if (l != null) for (A o : l)
    if (eq(shortClassName(o), shortName))
      ret o;
  null;
}

Author comment

Began life as a copy of #1015817

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: #1021792
Snippet name: firstWithClassShortNamed
Eternal ID of this version: #1021792/4
Text MD5: 987f6aeb6d58f7348c813dd936409294
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-27 12:56:12
Source code size: 332 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 274 / 339
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024231 - hasElementWithClassShortNamed
#1026290 - filterByShortName