public interface Type
Type
interface is used to represent a method or
field that has been annotated for serialization. Representing
methods and fields as a generic type object allows various
common details to be extracted in a uniform way. It allows all
annotations on the method or field to be exposed. This can
also wrap classes that represent entries to a list or map.Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
getAnnotation(Class<T> type)
This is the annotation associated with the method or field
that has been annotated.
|
Class |
getType()
This will provide the method or field type.
|
String |
toString()
This is used to describe the type as it exists within the
owning class.
|
Class getType()
<T extends Annotation> T getAnnotation(Class<T> type)
java.util.List
then
this will return null for any annotation requested.type
- this is the type of the annotation to acquireCopyright © 2021 Alibaba Cloud Computing. All rights reserved.