public static class GenericMetadataSupport.TypeVarBoundedType extends java.lang.Object implements GenericMetadataSupport.BoundedType
It uses the first bound in the array, as this array is never null and always contains at least one element (Object is always here if no bounds are declared).
If upper bounds are declared with SomeClass and additional interfaces, then firstBound will be SomeClass and
interfacesBound will be an array of the additional interfaces.
i.e. SomeClass.
interface UpperBoundedTypeWithClass & Cloneable> {
E get();
}
// will return Comparable type
| Constructor and Description |
|---|
GenericMetadataSupport.TypeVarBoundedType(java.lang.reflect.TypeVariable typeVariable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.reflect.Type |
firstBound() |
int |
hashCode() |
java.lang.reflect.Type[] |
interfaceBounds()
On a Type Variable (typeVar extends C_0 & I_1 & I_2 & etc), will return an array
containing I_1 and I_2.
|
java.lang.String |
toString() |
java.lang.reflect.TypeVariable |
typeVariable() |
public GenericMetadataSupport.TypeVarBoundedType(java.lang.reflect.TypeVariable typeVariable)
public java.lang.reflect.Type firstBound()
firstBound in interface GenericMetadataSupport.BoundedTypepublic java.lang.reflect.Type[] interfaceBounds()
interfaceBounds in interface GenericMetadataSupport.BoundedTypepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.reflect.TypeVariable typeVariable()