Name
ParameterizedType
Synopsis
This subinterface
of Type
represents a parameterized type.
getRawType( )
returns the base type that
has been parameterized. getActualTypeArguments(
)
returns the type parameters as a
Type[ ]
. Note that these parameters may themselves
be ParameterizedType
objects.
getOwnerType( )
is used with parameterized
types that are also nested types: it returns the generic type of the
containing type.
Figure 10-99. java.lang.reflect.ParameterizedType
public interface ParameterizedType extends Type { // Public Instance Methods Type[ ] getActualTypeArguments( ); Type getOwnerType( ); Type getRawType( ); }
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.