|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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.
longpublic String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic 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 | |||||||||