Package com.zerog.ia.auto.project
Class UUID
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.UUID
-
- All Implemented Interfaces:
Referenceable
public class UUID extends ProjectObject
Represents a universal unique identifier, used by resources that need an unique indentity.To create a new UUID use the
generate()
method.
-
-
Constructor Summary
Constructors Constructor Description UUID(java.lang.String uuid)
Default constructor, which is not intended to be used by the API's end user.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
The equals implementation based on the UUID.static UUID
generate()
Generates a new universal unique identifier (UUID).java.lang.String
getUUID()
The string representation of the UUID.int
hashCode()
The hash code implementation based on the UUID.void
setUUID(java.lang.String uuid)
The string representation of the UUID.java.lang.String
toString()
The string representation of the UUID.-
Methods inherited from class com.zerog.ia.auto.project.ProjectObject
getReferenceID, setReferenceID
-
-
-
-
Method Detail
-
generate
public static UUID generate()
Generates a new universal unique identifier (UUID).
-
getUUID
public java.lang.String getUUID()
The string representation of the UUID.
-
setUUID
public void setUUID(java.lang.String uuid)
The string representation of the UUID.
-
hashCode
public int hashCode()
The hash code implementation based on the UUID.- Overrides:
hashCode
in classProjectObject
-
equals
public boolean equals(java.lang.Object obj)
The equals implementation based on the UUID.- Overrides:
equals
in classProjectObject
-
toString
public java.lang.String toString()
The string representation of the UUID.- Overrides:
toString
in classjava.lang.Object
-
-