Class SimpleParameterizedType

    • Method Detail

      • create

        public static SimpleParameterizedType create​(Type mainType,
                                                     Type... parameters)
        Creates a new SimpleParameterizedType based on the class name of the specified class and the specified parameters.
        Parameters:
        mainType - the class to get the name from
        parameters - list of generic parameters to this type
        Returns:
        the created type
      • create

        public static SimpleParameterizedType create​(String fullName,
                                                     Type... parameters)
        Creates a new SimpleParameterizedType with the specified absolute class name.
        Parameters:
        fullName - the absolute type name
        parameters - list of generic parameters to this type
        Returns:
        the created simple type
      • create

        public static SimpleParameterizedType create​(File file,
                                                     ClassOrInterface<?> clazz,
                                                     Type... parameters)
        Creates a new SimpleParameterizedType referencing the specified class in the specified file. These do not have to exist yet.
        Parameters:
        file - the file to reference
        clazz - the class to reference
        parameters - list of generic parameters to this type
        Returns:
        the new simple type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object