Class PluginDependency


  • public final class PluginDependency
    extends Object
    Represents a dependency on another plugin.
    • Constructor Detail

      • PluginDependency

        public PluginDependency​(String id,
                                @Nullable String version,
                                boolean optional)
        Creates a new instance.
        Parameters:
        id - the plugin ID
        version - an optional version
        optional - whether or not this dependency is optional
    • Method Detail

      • isOptional

        public boolean isOptional()
        Returns whether the dependency is optional for the plugin to work correctly.
        Returns:
        true if dependency is optional
      • equals

        public boolean equals​(@Nullable Object o)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object