Class PluginId

  • All Implemented Interfaces:
    Serializable

    public final class PluginId
    extends Object
    implements Serializable
    The ID of a plugin, consisting of the plugin JAR's key and an optional file key. The file key is used only when the plugin consists of multiple JAR files.
    Since:
    8.5.0
    See Also:
    Serialized Form
    • Constructor Detail

      • PluginId

        public PluginId​(String pluginKey,
                        String fileKey)
        Creates a new plugin ID instance.
        Parameters:
        pluginKey - The plugin key.
        fileKey - The file key, or null if the plugin consists of a single JAR file.
    • Method Detail

      • fileKey

        public String fileKey()
        Gets the file key, or empty when the plugin consists of a single JAR file.
        Returns:
        The file key.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • pluginKey

        public String pluginKey()
        Gets the plugin key. Usually the plugin key is set within the JAR's manifest.
        Returns:
        The plugin key.