|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.gadgets.view.ModuleId
@Immutable public final class ModuleId
Representation of the identifier for an instance of a gadget rendered on a page.
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
String |
toString()
|
long |
value()
Returns the value of the identifier as a long . |
static ModuleId |
valueOf(long id)
Converts the long value to a ModuleId object. |
static ModuleId |
valueOf(String id)
Converts the String value to a ModuleId object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public long value()
long
.
long
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static ModuleId valueOf(long id)
long
value to a ModuleId
object.
id
- long
value to use
ModuleId
with the underlying value of id
public static ModuleId valueOf(String id) throws NumberFormatException
String
value to a ModuleId
object.
id
- String
value to use
ModuleId
with the underlying value of the long
value parsed from id
IllegalArgumentException
- if id
is null
NumberFormatException
- if id
does not contain a parsable long
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |