D - the generic declaration that declares this type variablepublic interface TypeVariable<D extends GenericDeclaration> extends Type
'T' in 'public interface Comparable<T>', the bounded 'T' in 'public interface A<T extends Number>' or the multiple bounded 'T' in 'public interface B<T extends Number & Cloneable>'.| Modifier and Type | Method and Description |
|---|---|
Type[] |
getBounds()
Returns the upper bounds of this type variable.
|
D |
getGenericDeclaration()
Returns the language construct that declares this type variable.
|
String |
getName()
Returns the name of this type variable as it is specified in source
code.
|
Type[] getBounds()
Object is the
implicit upper bound if no other bounds are declared.TypeNotPresentException - if any of the bounds points to a missing typeMalformedParameterizedTypeException - if any of the bounds points to a type that cannot be
instantiated for some reasonD getGenericDeclaration()
String getName()