T
- genetic typepublic interface AnyType<T>
ObjectType
.Modifier and Type | Method and Description |
---|---|
ObjectType<T> |
asObject() |
java.lang.reflect.Type |
getGenericType()
|
java.lang.String |
getName()
Get the name of this type, name is used to know the type on the deserialization.
If a field is defined with Object type, and value is a 'Foo' instance, this name is write before the object in the writer. |
java.lang.Class<T> |
getType()
Get class for this type
|
boolean |
isObject()
Get if this type instance is a implementation of
ObjectType , if false, this type can be a primitive or an array. |
java.lang.String getName()
java.lang.Class<T> getType()
java.lang.reflect.Type getGenericType()
getType()
except for generic types using ParameterizedType
or any other reflect generic type.getType()
return Class<List> and this method return ParameterizedType
'List<String>'
method.boolean isObject()
ObjectType
, if false, this type can be a primitive or an array. Note that unknown type use ObjectType
.ObjectType
is used for all standard class to get fields or arguments.ObjectType
ObjectType<T> asObject()