Package sunlabs.brazil.util
Class Guid
- java.lang.Object
-
- sunlabs.brazil.util.Guid
-
public class Guid extends java.lang.Object
Utility to generate GUID's (Globally Unique Identifiers). We'll fill in more methods as needed.- Version:
- 2.2
- Author:
- Stephen Uhler
-
-
Constructor Summary
Constructors Constructor Description Guid()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getGuidString()
Return a GUID as a string.static java.lang.String
getString()
Return a GUID as a string.static void
setGuidImpl(Guid factory)
Allow global replacement of the GUID generator.
-
-
-
Method Detail
-
setGuidImpl
public static void setGuidImpl(Guid factory)
Allow global replacement of the GUID generator. Applications wishing to install their own GUID generators should sub-class Guid, override the getGuid() method, and use this method to install their generator.
-
getString
public static java.lang.String getString()
Return a GUID as a string.
-
getGuidString
protected java.lang.String getGuidString()
Return a GUID as a string. This is completely arbitrary, and returns the hexification of a random value followed by a timestamp.
-
-