Package net.karneim.pojobuilder.model
Class ArrayTypeM
- java.lang.Object
-
- net.karneim.pojobuilder.model.TypeM
-
- net.karneim.pojobuilder.model.ArrayTypeM
-
public class ArrayTypeM extends TypeM
-
-
Constructor Summary
Constructors Constructor Description ArrayTypeM(TypeM componentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportTypesMaddToImportTypes(ImportTypesM result)booleanequals(java.lang.Object obj)java.lang.StringgetGenericType()Returns a String representation of the minimal generics definition of this type.java.lang.StringgetGenericTypeDeclarationAsVarArgs()java.lang.StringgetGenericTypeDefinition()Returns a String representation of the complete generics definition of this type.inthashCode()ThisTypeM.hashCode()implementation doesn't use typeParameters to avoid a potential StackOverflowError.booleanisArrayType()java.lang.StringtoString()-
Methods inherited from class net.karneim.pojobuilder.model.TypeM
getName, getPackageName, getSimpleName, getSimpleNames, getTypeParameters, isGeneric, isInPackage, isPrimitive, isTypeVariable, withTypeParameter
-
-
-
-
Constructor Detail
-
ArrayTypeM
public ArrayTypeM(TypeM componentType)
-
-
Method Detail
-
isArrayType
public boolean isArrayType()
- Overrides:
isArrayTypein classTypeM
-
getGenericTypeDefinition
public java.lang.String getGenericTypeDefinition()
Description copied from class:TypeMReturns a String representation of the complete generics definition of this type. This can be used for generic parameter definitions of classes and methods.Named generic types are represented with bounds. To get a minimal representation used for field declarations see
TypeM.getGenericType()Example Output:
"Map<T extends CharSequence, E extends List<? super Number>>"- Overrides:
getGenericTypeDefinitionin classTypeM- Returns:
- the complete generics definition
-
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
-
getGenericTypeDeclarationAsVarArgs
public java.lang.String getGenericTypeDeclarationAsVarArgs()
-
addToImportTypes
public ImportTypesM addToImportTypes(ImportTypesM result)
- Overrides:
addToImportTypesin classTypeM
-
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.
-
-