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

6
LINES

< > BotCompany Repo | #1004819 // hasType - does collection include an object of some type?

JavaX fragment (include)

1  
static bool hasType(Collection c, Class type) {
2  
  for (O x : c)
3  
    if (isInstanceX(type, x))
4  
      ret true;
5  
  ret false;
6  
}

Author comment

Began life as a copy of #1004806

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004819
Snippet name: hasType - does collection include an object of some type?
Eternal ID of this version: #1004819/1
Text MD5: 16d57394e9a4dc3a79378eb06359db6c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-09-02 14:14:56
Source code size: 129 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 600 / 599
Referenced in: [show references]