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( )}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.