Class TypeVariableM

    • Field Detail

    • Constructor Detail

      • TypeVariableM

        public TypeVariableM​(java.lang.String name)
    • Method Detail

      • hasBounds

        public boolean hasBounds()
      • getBoundsString

        public java.lang.String getBoundsString()
      • 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
      • getBoundRelation

        protected java.lang.String getBoundRelation()
      • 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