Class Primitives
java.lang.Object
com.google.gson.internal.Primitives
Contains static utility methods pertaining to primitive types and their
corresponding wrapper types.
- Author:
- Kevin Bourrillion
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisPrimitive(Type type) Returns true if this type is a primitive.static booleanisWrapperType(Type type) static <T> Class<T> Returns the corresponding primitive type oftypeif it is a wrapper type; otherwise returnstypeitself.static <T> Class<T> Returns the corresponding wrapper type oftypeif it is a primitive type; otherwise returnstypeitself.
-
Method Details
-
isPrimitive
Returns true if this type is a primitive. -
isWrapperType
-
wrap
-
unwrap
-