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

10
LINES

< > BotCompany Repo | #1024088 // isBoxedType (Bool, Int, ...)

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

Libraryless. Click here for Pure Java version (35L/1K).

sbool isBoxedType(Class type) {
  ret type == Boolean.class
    || type == Integer.class
    || type == Long.class
    || type == Float.class
    || type == Short.class
    || type == Character.class
    || type == Byte.class
    || type == Double.class;
}

Author comment

Began life as a copy of #1017021

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024088
Snippet name: isBoxedType (Bool, Int, ...)
Eternal ID of this version: #1024088/1
Text MD5: 1be81e416592a12af32a11c508ba6a3c
Transpilation MD5: 92c265b72b63196662cb8702be88a610
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-20 15:26:26
Source code size: 265 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 148 / 222
Referenced in: [show references]