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

10
LINES

< > BotCompany Repo | #1028942 // too_thinkAndReturnObjectsOfType

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5955L/38K).

1  
static <A> L<A> nuLike too_thinkAndReturnObjectsOfType(Class<A> type, TransformersOnObjects too) {
2  
  new L<A> out;
3  
  too.addTransformer(func(O o) {
4  
    if (isInstance(type, o))
5  
      out.add((A) o);
6  
    null;
7  
  });
8  
  too.think();
9  
  ret out;
10  
}

Author comment

Began life as a copy of #1028840

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028942
Snippet name: too_thinkAndReturnObjectsOfType
Eternal ID of this version: #1028942/1
Text MD5: caa7c2313ecb046a01bfdb24dee593e0
Transpilation MD5: 8774ea02e66480efef61532ad57346d1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-12 13:13:30
Source code size: 251 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 132 / 193
Referenced in: [show references]