public class TypeWildcardM extends TypeVariableM
bounds| Constructor and Description |
|---|
TypeWildcardM() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBoundRelation() |
java.lang.String |
getGenericType()
Returns a String representation of the minimal generics definition of this type.
|
int |
hashCode()
This
TypeM.hashCode() implementation doesn't use typeParameters to avoid a potential
StackOverflowError. |
java.lang.String |
toString() |
TypeWildcardM |
whichExtends(TypeM... types) |
TypeWildcardM |
whichIsASupertypeOf(TypeM type) |
addToImportTypes, getBoundsString, getGenericTypeDefinition, hasBounds, isTypeVariablegetName, getPackageName, getSimpleName, getTypeParameters, isArrayType, isGeneric, isInPackage, isPrimitive, withTypeParameterpublic TypeWildcardM whichExtends(TypeM... types)
whichExtends in class TypeVariableMpublic TypeWildcardM whichIsASupertypeOf(TypeM type)
public java.lang.String getBoundRelation()
getBoundRelation in class TypeVariableMpublic java.lang.String getGenericType()
TypeM
Named generic types are represented without bounds, because they are defined in the class or
method signature. To get a representation of the full definition including bounds see
TypeM.getGenericTypeDefinition()
Example Output: "Map<T, ? extends List<? super Number>>"
getGenericType in class TypeMpublic int hashCode()
TypeMTypeM.hashCode() implementation doesn't use typeParameters to avoid a potential
StackOverflowError. The TypeM.equals(Object) implementation does use that field.hashCode in class TypeVariableMpublic boolean equals(java.lang.Object obj)
equals in class TypeVariableMpublic java.lang.String toString()
toString in class TypeVariableM