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

13
LINES

< > BotCompany Repo | #1021792 // firstWithClassShortNamed

JavaX fragment (include)

1  
static <A> A firstWithClassShortNamed(S shortName, Iterable<A> l) {
2  
  if (l != null) for (A o : l)
3  
    if (eq(shortClassName(o), shortName))
4  
      ret o;
5  
  null;
6  
}
7  
8  
static <A> A firstWithClassShortNamed(S shortName, A[] l) {
9  
  if (l != null) for (A o : l)
10  
    if (eq(shortClassName(o), shortName))
11  
      ret o;
12  
  null;
13  
}

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: 275 / 341
Version history: 3 change(s)
Referenced in: [show references]