@Immutable public final class ModuleId extends Object
| Modifier and Type | Method and Description |
|---|---|
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. |
public long value()
long.longpublic static ModuleId valueOf(long id)
long value to a ModuleId object.id - long value to useModuleId with the underlying value of idpublic static ModuleId valueOf(String id) throws NumberFormatException
String value to a ModuleId object.id - String value to useModuleId with the underlying value of the long value parsed from idIllegalArgumentException - if id is nullNumberFormatException - if id does not contain a parsable longCopyright © 2024 Atlassian. All rights reserved.