Name
Type
Synopsis
This interface has no members but is
implemented or extended by any type that represents a generic or
nongeneric type. java.lang.Class implements this
interface. Type is also extended by four
interfaces that represent four specific kinds of
generic types:
ParameterizedType,
TypeVariable, WildcardType, and
GenericArrayType.
public interface Type {
}Implementations
Class, GenericArrayType,
ParameterizedType,
TypeVariable, WildcardType
Returned By
Class.{getGenericInterfaces( ),
getGenericSuperclass( )},
Constructor.{getGenericExceptionTypes( ),
getGenericParameterTypes( )},
Field.getGenericType( ),
GenericArrayType.getGenericComponentType( ),
Method.{getGenericExceptionTypes( ),
getGenericParameterTypes( ),
getGenericReturnType( )},
ParameterizedType.{getActualTypeArguments( ),
getOwnerType( ), getRawType(
)}, TypeVariable.getBounds( ),
WildcardType.{getLowerBounds( ),
getUpperBounds( )}
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access