public final class RepositoryId extends Object
This identifier is independent of the repository's physical location and format.
The repository id conforms to the format of a UUID node, as specified by RFC 4122. it is 48 bits (6 bytes) and is usually represented as 12 hexadecimal digits.
Repository
Modifier and Type | Field and Description |
---|---|
static int |
LENGTH
Repository identifier length.
|
static String |
PATTERN
Repository identifier string pattern.
|
Modifier and Type | Method and Description |
---|---|
void |
checkValidity() |
static RepositoryId |
createRandomly() |
boolean |
equals(Object x) |
String |
formatToHexString() |
long |
getLong() |
int |
hashCode() |
static RepositoryId |
parseHexString(String aString) |
String |
toString() |
public static final int LENGTH
public static final String PATTERN
public static RepositoryId createRandomly()
public static RepositoryId parseHexString(String aString) throws NumberFormatException
NumberFormatException
public String formatToHexString()
public long getLong()
public void checkValidity() throws RuntimeException
RuntimeException