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

5
LINES

< > BotCompany Repo | #1006150 // allElementsAreOfType

JavaX fragment (include)

1  
static bool allElementsAreOfType(Collection c, Class type) {
2  
  for (O o : c)
3  
    if (!isInstanceX(type, o)) false;
4  
  true;
5  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006150
Snippet name: allElementsAreOfType
Eternal ID of this version: #1006150/1
Text MD5: f38dc95ffa183b655cdc811819684f9e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-21 17:00:17
Source code size: 128 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 508 / 490
Referenced in: [show references]