Class SimpleType

  • All Implemented Interfaces:
    Type

    public final class SimpleType
    extends Object
    implements Type
    A very simple implementation of the java Type interface.
    Since:
    2.4.1
    Author:
    Emil Forslund
    • Method Detail

      • create

        public static SimpleType create​(String typeName)
        Creates a new SimpleType with the specified absolute class name.
        Parameters:
        typeName - the absolute type name
        Returns:
        the created simple type
      • create

        public static SimpleType create​(File file,
                                        ClassOrInterface<?> clazz)
        Creates a new SimpleType 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
        Returns:
        the new simple type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object