Libraryless. Click here for Pure Java version (5028L/28K).
1 | svoid assertInstanceOfOrNull(Class type, O o) {
|
2 | if (o != null) |
3 | assertIsInstance(type, o); |
4 | } |
5 | |
6 | svoid assertInstanceOfOrNull(O o, Class type) {
|
7 | assertInstanceOfOrNull(type, o); |
8 | } |
Began life as a copy of #1018570
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034564 |
| Snippet name: | assertInstanceOfOrNull |
| Eternal ID of this version: | #1034564/1 |
| Text MD5: | 7ee1719cf96eae4b8072bf161559030f |
| Transpilation MD5: | 852ae3d6d4218e166bd294867a81f2a5 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-02-15 21:34:48 |
| Source code size: | 190 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 432 / 535 |
| Referenced in: | [show references] |