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 booleanequals(java.lang.Object obj)The equals implementation based on the UUID.static UUIDgenerate()Generates a new universal unique identifier (UUID).java.lang.StringgetUUID()The string representation of the UUID.inthashCode()The hash code implementation based on the UUID.voidsetUUID(java.lang.String uuid)The string representation of the UUID.java.lang.StringtoString()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:
hashCodein classProjectObject
-
equals
public boolean equals(java.lang.Object obj)
The equals implementation based on the UUID.- Overrides:
equalsin classProjectObject
-
toString
public java.lang.String toString()
The string representation of the UUID.- Overrides:
toStringin classjava.lang.Object
-
-