Package com.atlassian.gadgets.view
Class ModuleId
java.lang.Object
com.atlassian.gadgets.view.ModuleId
Representation of the identifier for an instance of a gadget rendered on a page.
- Since:
- 2.0
-
Method Details
-
value
public long value()Returns the value of the identifier as along.- Returns:
- the value of the identifier as a
long
-
toString
-
equals
-
hashCode
public int hashCode() -
valueOf
Converts thelongvalue to aModuleIdobject.- Parameters:
id-longvalue to use- Returns:
ModuleIdwith the underlying value ofid
-
valueOf
Converts theStringvalue to aModuleIdobject.- Parameters:
id-Stringvalue to use- Returns:
ModuleIdwith the underlying value of thelongvalue parsed fromid- Throws:
IllegalArgumentException- ifidisnullNumberFormatException- ifiddoes not contain a parsablelong
-