Package com.ultikits.ultitools.utils
Class BasicTypeUtil
java.lang.Object
com.ultikits.ultitools.utils.BasicTypeUtil
Basic type determination utility class.
Replaces hutool ClassUtil.isBasicType() / ObjectUtil.isBasicType().
- Since:
- 6.2.0
- Author:
- wisdomme
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe set of basic types, including their wrapper types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBasicType(Class<?> clazz) Determines whether the given class is a basic type (including wrapper types and String).static booleanisBasicType(Object obj) Determines whether the given object is a basic type.
-
Field Details
-
BASIC_TYPES
The set of basic types, including their wrapper types.
-
-
Constructor Details
-
BasicTypeUtil
private BasicTypeUtil()
-
-
Method Details
-
isBasicType
Determines whether the given class is a basic type (including wrapper types and String).- Parameters:
clazz- the class- Returns:
- whether it is a basic type
-
isBasicType
Determines whether the given object is a basic type.- Parameters:
obj- the object- Returns:
- whether it is a basic type
-