public final class GUID extends Object implements Serializable
The implementation is built using VMID
and has the same constraints as described in
the Javadoc for that class.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
static GUID |
next()
Generates a new unique identifier.
|
static GUID |
parse(String str)
Creates a new identifier from a string.
|
String |
toString() |
public static GUID parse(String str)
This method can be used to produce multiple objects with the same ID, violating uniqueness. It is intended to be used for testing purposes only in cases where the same ID is required every time.
str
- the identifier to useCopyright © 2020 Actian Corporation. All rights reserved.