Class PackageProxy


  • public class PackageProxy
    extends QualifiableProxy
    A container for information about a package.
    Since:
    0.4.0
    • Constructor Detail

      • PackageProxy

        protected PackageProxy​(PackageProxy parent,
                               java.lang.String fqn)
        The protected constructor, called only from from(String).
        Parameters:
        parent - the PackageProxy representing the parent
        fqn - the fully-qualified name of this package
    • Method Detail

      • from

        protected static PackageProxy from​(java.lang.String fqn)
        Builds a PackageProxy from its fully-qualified name.
        Parameters:
        fqn - the fully-qualified name of the package
        Returns:
        the built PackageProxy
      • from

        protected static PackageProxy from​(java.lang.Package p)
        Builds a PackageProxy from a reflective Package object.
        Parameters:
        p - the Package object
        Returns:
        the built PackageProxy
      • equals

        public boolean equals​(java.lang.Object obj)
        Indicates whether the given object is a proxy for the same element as this.
        Overrides:
        equals in class QualifiableProxy
        Parameters:
        obj - the object to perform
        Returns:
        true if it's equal