Class ModuleDependency

    • Method Detail

      • builder

        public static ModuleDependency.Builder builder​(String name)
        Creates a new dependency builder.
        Parameters:
        name - the name of the dependency
        Returns:
        the new dependency builder
      • name

        public String name()
        Returns the module dependency name.
        Returns:
        the dependency name
      • isExport

        public boolean isExport()
        Indicates if the dependency should be exported.
        Returns:
        whether the dependency should be exported
      • isOptional

        public boolean isOptional()
        Indicates if the dependency is optional.
        Returns:
        whether the dependency is optional
      • imports

        public Set<ModuleDependency.Filter> imports()
        The import filters for the dependency.
        Returns:
        the import filters or an empty set
      • exports

        public Set<ModuleDependency.Filter> exports()
        The export filters for the dependency.
        Returns:
        the export filters or an empty set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object