Class ArrayTypeM


  • public class ArrayTypeM
    extends TypeM
    • Constructor Detail

      • ArrayTypeM

        public ArrayTypeM​(TypeM componentType)
    • Method Detail

      • isArrayType

        public boolean isArrayType()
        Overrides:
        isArrayType in class TypeM
      • getGenericTypeDefinition

        public java.lang.String getGenericTypeDefinition()
        Description copied from class: TypeM
        Returns 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:
        getGenericTypeDefinition in class TypeM
        Returns:
        the complete generics definition
      • getGenericType

        public java.lang.String getGenericType()
        Description copied from class: TypeM
        Returns 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:
        getGenericType in class TypeM
        Returns:
        the generic type
      • getGenericTypeDeclarationAsVarArgs

        public java.lang.String getGenericTypeDeclarationAsVarArgs()
      • hashCode

        public int hashCode()
        Description copied from class: TypeM
        This TypeM.hashCode() implementation doesn't use typeParameters to avoid a potential StackOverflowError. The TypeM.equals(Object) implementation does use that field.
        Overrides:
        hashCode in class TypeM
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class TypeM
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class TypeM