Package com.atlassian.gadgets.plugins
Class PluginGadgetSpec.Key
java.lang.Object
com.atlassian.gadgets.plugins.PluginGadgetSpec.Key
- Enclosing class:
- PluginGadgetSpec
An immutable representation of a unique identifier for plugin gadget specs, composed of a plugin key and resource
location path name.
-
Constructor Details
-
Key
Constructs a newPluginGadgetSpec.Keyfrom the specified plugin key and resource location.- Parameters:
pluginKey- the plugin key of thePluginthat contains the resource. Must not benull, or aNullPointerExceptionwill be thrown.location- the location of the resource within the plugin or the external location of the resource. Must not benull, or aNullPointerExceptionwill be thrown.- Throws:
NullPointerException- if any argument isnull
-
-
Method Details
-
getPluginKey
Returns the key of the plugin that the spec this key is for is contained in.- Returns:
- the key of the plugin
-
getLocation
Returns the location of the spec this key is for.- Returns:
- the location of the spec this key is for
-
equals
-
hashCode
public int hashCode() -
toString
-