- java.lang.Object
-
- com.pervasive.datarush.commons.util.GUID
-
- All Implemented Interfaces:
Serializable
public final class GUID extends Object implements Serializable
A globally unique identifier. Every identifier is distinct from all other identifiers.The implementation is built using
VMID
and has the same constraints as described in the Javadoc for that class.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
parse
public static GUID parse(String str)
Creates a new identifier from a string.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.
- Parameters:
str
- the identifier to use- Returns:
- a new identifier
-
-