Class AbstractJavaClassInfo

    • Constructor Detail

      • AbstractJavaClassInfo

        public AbstractJavaClassInfo()
    • Method Detail

      • equals

        public boolean equals​(Object that)
        Description copied from interface: IJavaClassInfo
        Two IJavaClassInfo instances are equal if they are both non-arrays and have the same name and module. If the two instances are arrays, then they are equal if their component types are equal.
        Specified by:
        equals in interface IJavaClassInfo
        Overrides:
        equals in class Object
        Parameters:
        that - the other object
        Returns:
        whether the two objects represent the same class.
      • hashCode

        public int hashCode()
        Description copied from interface: IJavaClassInfo
        In order to maintain consistency with IJavaClassInfo.equals(Object), the hash code of a non-array IJavaClassInfo must be computed as follows:

        getName().hashCode() * 31 + getModule().hashCode()

        For arrays, the hashCode is equal to the hashCode of the component type.

        Specified by:
        hashCode in interface IJavaClassInfo
        Overrides:
        hashCode in class Object
        Returns:
        the hash code