public final class UnresolvedTypeVariable extends Type
EMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
UnresolvedTypeVariable |
asUnresolvedTypeVariable()
Casts this type to an
UnresolvedTypeVariable and returns it if the kind is
Type.Kind.UNRESOLVED_TYPE_VARIABLE
Throws an exception otherwise. |
boolean |
equals(Object o)
Compares this Type with another type, and returns true if they are equivalent.
|
int |
hashCode()
Computes a hash code representing this type.
|
String |
identifier()
The identifier of this unresolved type variable as it appears in Java source code.
|
Type.Kind |
kind()
Returns the kind of Type this is.
|
String |
toString()
Returns a string representation for this type.
|
annotations, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asVoidType, asWildcardType, create, namepublic String identifier()
The following class has a type parameter, with an identifier of "T":
class Foo<T extends Number> {}
public UnresolvedTypeVariable asUnresolvedTypeVariable()
TypeUnresolvedTypeVariable and returns it if the kind is
Type.Kind.UNRESOLVED_TYPE_VARIABLE
Throws an exception otherwise.asUnresolvedTypeVariable 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.