public class WildcardType extends Type
EMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
WildcardType |
asWildcardType()
Casts this type to a
WildcardType and returns it if the kind is
Type.Kind.WILDCARD_TYPE
Throws an exception otherwise. |
boolean |
equals(Object o)
Compares this Type with another type, and returns true if they are equivalent.
|
Type |
extendsBound()
Returns the extends (upper) bound of this wildcard.
|
int |
hashCode()
Computes a hash code representing this type.
|
Type.Kind |
kind()
Returns the kind of Type this is.
|
Type |
superBound()
Returns the super (lower) bound of this wildcard.
|
String |
toString()
Returns a string representation for this type.
|
annotations, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asUnresolvedTypeVariable, asVoidType, create, namepublic Type extendsBound()
public Type superBound()
public WildcardType asWildcardType()
TypeWildcardType and returns it if the kind is
Type.Kind.WILDCARD_TYPE
Throws an exception otherwise.asWildcardType in class TypeClassTypepublic String toString()
Typepublic boolean equals(Object o)
Typeequals in class Typeo - the type to compare toObject.equals(Object)Copyright © 2022 JBoss by Red Hat. All rights reserved.