java.lang.Object
ushiosan.jvm_utilities.lang.Cls
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisPrimitive(@NotNull Class<?> clazz) Checks whether the class of the argument is of some primitive type or some wrapper class corresponding to the primitive type.static booleanisPrimitive(@NotNull Object obj) Checks whether the class of the argument is of some primitive type or some wrapper class corresponding to the primitive type.static booleanisPrimitiveArray(@NotNull Class<?> clazz) Checks if the class of the argument is of some primitive type or some wrapper class corresponding to the primitive type (version for arrays).static booleanChecks if the class of the argument is of some primitive type or some wrapper class corresponding to the primitive type (version for arrays).toTypeArgs(Object @NotNull ... args) Returns the type of all data passed as arguments
-
Method Details
-
isPrimitive
Checks whether the class of the argument is of some primitive type or some wrapper class corresponding to the primitive type.- Parameters:
clazz- the class to inspect- Returns:
trueif the class is a primitive type orfalseotherwise
-
isPrimitive
Checks whether the class of the argument is of some primitive type or some wrapper class corresponding to the primitive type.- Parameters:
obj- the object to inspect- Returns:
trueif the class is a primitive type orfalseotherwise
-
isPrimitiveArray
Checks if the class of the argument is of some primitive type or some wrapper class corresponding to the primitive type (version for arrays).- Parameters:
clazz- the class to inspect- Returns:
trueif the class is a primitive type orfalseotherwise
-
isPrimitiveArray
Checks if the class of the argument is of some primitive type or some wrapper class corresponding to the primitive type (version for arrays).- Parameters:
obj- the object to inspect- Returns:
trueif the class is a primitive type orfalseotherwise
-
toTypeArgs
Returns the type of all data passed as arguments- Parameters:
args- the arguments to convert- Returns:
- an array with all element types
-