Libraryless. Click here for Pure Java version (2520L/16K).
1 | sbool instanceOfOneOf(O o, Class... classes) {
|
2 | if (o != null) |
3 | fOr (Class c : classes) |
4 | if (isInstanceOf(o, c)) |
5 | true; |
6 | false; |
7 | } |
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: | #1027803 |
| Snippet name: | instanceOfOneOf |
| Eternal ID of this version: | #1027803/1 |
| Text MD5: | 946d40798dc06c505585ea25c5151dd3 |
| Transpilation MD5: | f2d8fd5f9608d1a6f1ec51737441c491 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-04-13 14:08:23 |
| Source code size: | 152 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 353 / 468 |
| Referenced in: | [show references] |