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

3
LINES

< > BotCompany Repo | #1026816 // addIfInstanceOf

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

Libraryless. Compilation Failed (56L/1K).

static <A, B extends A> void addIfInstanceOf(Collection<A> l, Class<B> c, O a) {
  if (l != null && instanceOf(c, a)) l.add((A) a);
}

Author comment

Began life as a copy of #1005547

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: #1026816
Snippet name: addIfInstanceOf
Eternal ID of this version: #1026816/1
Text MD5: e7652b18e4b74594955ef430abd98e4b
Transpilation MD5: 6c4b35dcf235b25d0dca228a7bc306c0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-23 20:47:51
Source code size: 135 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 183 / 254
Referenced in: [show references]