Class WildcardType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable

    public class WildcardType
    extends Type
    This class supports both the 'super' and 'extends' wildcards. For <?> you must use the normal Type, because ? itself can't be generic
    Author:
    Robert Scholte
    See Also:
    Serialized Form
    • Method Detail

      • getGenericValue

        public java.lang.String getGenericValue()
        Description copied from class: Type
        The FQN representation of an Object for code usage This implementation ignores generics Some examples how Objects will be translated
         Object > java.lang.object
         java.util.List > java.util.List
         ? > ?
         T > T
         anypackage.Outer.Inner > anypackage.Outer.Inner
         
        Overrides:
        getGenericValue in class Type
        Returns:
        generic type representation for code usage