Package com.cedarsoftware.util.io
Class Primitives
java.lang.Object
com.cedarsoftware.util.io.Primitives
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isNativeJsonType
(Class<?> c) static boolean
isPrimitive
(Class<?> c)
-
Method Details
-
isPrimitive
- Parameters:
c
- Class to test- Returns:
- boolean true if the passed in class is a Java primitive, false otherwise. The Wrapper classes Integer, Long, Boolean, etc. are considered primitives by this method.
-
isNativeJsonType
- Parameters:
c
- Class to test- Returns:
- boolean true if the passed in class is a Java primitive, false otherwise. The Wrapper classes Integer, Long, Boolean, etc. are considered primitives by this method.
-