Class ModuleDetailsImpl.ModuleDependencyImpl

    • Method Detail

      • getDependencyId

        public String getDependencyId()
        Description copied from interface: ModuleDependency
        Get the ID of the module that this dependency describes. The dependency may be upon specific versions or a range of versions. Nevertheless, the module given by the returned ID will be required in one version or another.
        Specified by:
        getDependencyId in interface ModuleDependency
        Returns:
        Returns the ID of the module that this depends on
      • isValidDependency

        public boolean isValidDependency​(ModuleDetails moduleDetails)
        Description copied from interface: ModuleDependency
        Check if a module satisfies the dependency requirements.
        Specified by:
        isValidDependency in interface ModuleDependency
        Parameters:
        moduleDetails - the module details of the dependency. This must be the details of the module with the correct ID. This may be null in which case false will always be returned.
        Returns:
        Returns true if the module satisfies the dependency requirements.