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

8
LINES

< > BotCompany Repo | #1034564 // assertInstanceOfOrNull

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

Libraryless. Click here for Pure Java version (5028L/28K).

svoid assertInstanceOfOrNull(Class type, O o) {
  if (o != null)
    assertIsInstance(type, o);
}

svoid assertInstanceOfOrNull(O o, Class type) {
  assertInstanceOfOrNull(type, o);
}

Author comment

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: 184 / 235
Referenced in: [show references]