Package net.karneim.pojobuilder.model
Class TypeWildcardM
- java.lang.Object
-
- net.karneim.pojobuilder.model.TypeM
-
- net.karneim.pojobuilder.model.TypeVariableM
-
- net.karneim.pojobuilder.model.TypeWildcardM
-
public class TypeWildcardM extends TypeVariableM
-
-
Field Summary
-
Fields inherited from class net.karneim.pojobuilder.model.TypeVariableM
bounds
-
-
Constructor Summary
Constructors Constructor Description TypeWildcardM()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetBoundRelation()java.lang.StringgetGenericType()Returns a String representation of the minimal generics definition of this type.inthashCode()ThisTypeM.hashCode()implementation doesn't use typeParameters to avoid a potential StackOverflowError.java.lang.StringtoString()TypeWildcardMwhichExtends(TypeM... types)TypeWildcardMwhichIsASupertypeOf(TypeM type)-
Methods inherited from class net.karneim.pojobuilder.model.TypeVariableM
addToImportTypes, getBoundsString, getGenericTypeDefinition, hasBounds, isTypeVariable
-
Methods inherited from class net.karneim.pojobuilder.model.TypeM
getName, getPackageName, getSimpleName, getSimpleNames, getTypeParameters, isArrayType, isGeneric, isInPackage, isPrimitive, withTypeParameter
-
-
-
-
Method Detail
-
whichExtends
public TypeWildcardM whichExtends(TypeM... types)
- Overrides:
whichExtendsin classTypeVariableM
-
whichIsASupertypeOf
public TypeWildcardM whichIsASupertypeOf(TypeM type)
-
getBoundRelation
public java.lang.String getBoundRelation()
- Overrides:
getBoundRelationin classTypeVariableM
-
getGenericType
public java.lang.String getGenericType()
Description copied from class:TypeMReturns a String representation of the minimal generics definition of this type. This can be used for variable, parameter or return types such as field declarations.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>>"- Overrides:
getGenericTypein classTypeM- Returns:
- the generic type
-
hashCode
public int hashCode()
Description copied from class:TypeMThisTypeM.hashCode()implementation doesn't use typeParameters to avoid a potential StackOverflowError. TheTypeM.equals(Object)implementation does use that field.- Overrides:
hashCodein classTypeVariableM
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classTypeVariableM
-
toString
public java.lang.String toString()
- Overrides:
toStringin classTypeVariableM
-
-