WildcardType compatibly with the JDK's
WildcardTypeImpl.
Unfortunately we can't use the JDK's
WildcardTypeImpl here as we do for
ParameterizedTypeImpl and
GenericArrayTypeImpl,
because 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.
| Access | Constructor and Description |
|---|---|
| pack-priv | WildcardTypeImpl(Type[]
the array of types representing
the upper bound(s) of this type variable upperBounds, Type[] the array of types representing
the lower bound(s) of this type variable lowerBounds)Creates a wildcard type with the requested bounds. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this object is the same as the object argument;
false otherwisethe reference object with which to compare object)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Type[] | Returns: an array of types representing the lower bound(s) of this type variableImplements java. Returns an array of |
| public Type[] | Returns: an array of types representing the upper bound(s) of this type variableImplements java. Returns an array of |
| public int | Returns: a hash code value for this objectOverrides java. Returns a hash code value for the object. |
| public String | Returns: a string representation of the objectOverrides java. Returns a string representation of the object. |
| lowerBounds | back to summary |
|---|---|
| private final Type[] lowerBounds | |
| upperBounds | back to summary |
|---|---|
| private final Type[] upperBounds | |
| WildcardTypeImpl | back to summary |
|---|---|
| pack-priv WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds) 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. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Indicates whether some other object is "equal to" this one.
It is implemented compatibly with the JDK's
| |
| getLowerBounds | back to summary |
|---|---|
| public Type[] getLowerBounds() Implements java. Returns an array of | |
| getUpperBounds | back to summary |
|---|---|
| public Type[] getUpperBounds() Implements java. Returns an array of | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for the object.
It is implemented compatibly with the JDK's
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of the object.
It is implemented compatibly with the JDK's
| |