sunlabs.brazil.util

Class Guid

public class Guid extends Object

Utility to generate GUID's (Globally Unique Identifiers). We'll fill in more methods as needed.

Version: 2.2

Author: Stephen Uhler

Method Summary
protected StringgetGuidString()
Return a GUID as a string.
static StringgetString()
Return a GUID as a string.
static voidsetGuidImpl(Guid factory)
Allow global replacement of the GUID generator.

Method Detail

getGuidString

protected String getGuidString()
Return a GUID as a string. This is completely arbitrary, and returns the hexification of a random value followed by a timestamp.

getString

public static String getString()
Return a GUID as a string.

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.