| |
|
| java.lang.Object com.sun.beans.WildcardTypeImpl
WildcardTypeImpl | final class WildcardTypeImpl implements WildcardType(Code) | | This class implements
WildcardType WildcardType compatibly with the JDK's
sun.reflect.generics.reflectiveObjects.WildcardTypeImpl WildcardTypeImpl .
Unfortunately we can't use the JDK's
sun.reflect.generics.reflectiveObjects.WildcardTypeImpl WildcardTypeImpl here as we do for
sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl ParameterizedTypeImpl and
sun.reflect.generics.reflectiveObjects.GenericArrayTypeImpl GenericArrayTypeImpl ,
because
sun.reflect.generics.reflectiveObjects.WildcardTypeImpl WildcardTypeImpl 's
constructor takes parameters representing intermediate structures obtained during class-file parsing.
We could reconstruct versions of those structures but it would be more trouble than it's worth.
since: 1.7 version: 1.1 06/06/07 author: Eamonn McManus author: Sergey Malenkov |
Constructor Summary | |
| WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds) Creates a wildcard type with the requested bounds. |
Method Summary | |
public boolean | equals(Object object) Indicates whether some other object is "equal to" this one. | public Type[] | getLowerBounds() Returns an array of
Type Type objects
representing the lower bound(s) of this type variable. | public Type[] | getUpperBounds() Returns an array of
Type Type objects
representing the upper bound(s) of this type variable. | public int | hashCode() Returns a hash code value for the object. | public String | toString() Returns a string representation of the object. |
WildcardTypeImpl | WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds)(Code) | | Creates a wildcard type with the requested bounds.
Note that the array arguments are not cloned
because instances of this class are never constructed
from outside the containing package.
Parameters: upperBounds - the array of types representingthe upper bound(s) of this type variable Parameters: lowerBounds - the array of types representingthe lower bound(s) of this type variable |
equals | public boolean equals(Object object)(Code) | | Indicates whether some other object is "equal to" this one.
It is implemented compatibly with the JDK's
sun.reflect.generics.reflectiveObjects.WildcardTypeImpl WildcardTypeImpl .
Parameters: object - the reference object with which to compare true if this object is the same as the object argument; false otherwise See Also: sun.reflect.generics.reflectiveObjects.WildcardTypeImpl.equals |
getLowerBounds | public Type[] getLowerBounds()(Code) | | Returns an array of
Type Type objects
representing the lower bound(s) of this type variable.
Note that if no lower bound is explicitly declared,
the lower bound is the type of
null .
In this case, a zero length array is returned.
an array of types representingthe lower bound(s) of this type variable |
getUpperBounds | public Type[] getUpperBounds()(Code) | | Returns an array of
Type Type objects
representing the upper bound(s) of this type variable.
Note that if no upper bound is explicitly declared,
the upper bound is
Object Object .
an array of types representingthe upper bound(s) of this type variable |
hashCode | public int hashCode()(Code) | | Returns a hash code value for the object.
It is implemented compatibly with the JDK's
sun.reflect.generics.reflectiveObjects.WildcardTypeImpl WildcardTypeImpl .
a hash code value for this object See Also: sun.reflect.generics.reflectiveObjects.WildcardTypeImpl.hashCode |
toString | public String toString()(Code) | | Returns a string representation of the object.
It is implemented compatibly with the JDK's
sun.reflect.generics.reflectiveObjects.WildcardTypeImpl WildcardTypeImpl .
a string representation of the object See Also: sun.reflect.generics.reflectiveObjects.WildcardTypeImpl.toString |
|
|
|