public final class UnresolvedTypeVariable extends Type
EMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
static boolean |
arrayEquals(org.jboss.jandex.Interned[] a,
org.jboss.jandex.Interned[] b) |
static int |
arrayHashCode(org.jboss.jandex.Interned[] array) |
UnresolvedTypeVariable |
asUnresolvedTypeVariable()
Casts this type to an
UnresolvedTypeVariable and returns it if the kind is
Type.Kind.UNRESOLVED_TYPE_VARIABLE. |
boolean |
equals(Object o)
Compares this
Type with another type. |
int |
hashCode()
Computes a hash code representing this type.
|
String |
identifier()
Returns the identifier of this unresolved type variable as it appears in Java source code.
|
boolean |
internEquals(Object o) |
int |
internHashCode() |
Type.Kind |
kind()
Returns the kind of Type this is.
|
annotation, annotations, annotationsWithRepeatable, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asTypeVariableReference, asVoidType, asWildcardType, create, createWithAnnotations, hasAnnotation, name, toStringpublic String identifier()
For example, 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 TypeUnresolvedTypeVariablepublic boolean equals(Object o)
TypeType with another type. A type is equal to another type
if it is of the same kind, and all of their fields are equal. This includes
annotations, which must be equal as well.equals in class Typeo - the type to compare toObject.equals(Object)public int hashCode()
Typepublic boolean internEquals(Object o)
internEquals in class Typepublic int internHashCode()
internHashCode in class Typepublic static boolean arrayEquals(org.jboss.jandex.Interned[] a,
org.jboss.jandex.Interned[] b)
public static int arrayHashCode(org.jboss.jandex.Interned[] array)
Copyright © 2018–2022. All rights reserved.