public class RandomCodeGeneratorUUID extends Object implements RandomCodeGenerator
| Constructor and Description |
|---|
RandomCodeGeneratorUUID() |
| Modifier and Type | Method and Description |
|---|---|
String |
generateRandomCode()
Generates a random string in the form XXXX-XX-XX-XX-XXXXXX where
X is a hexadecimal.
|
public RandomCodeGeneratorUUID()
public String generateRandomCode()
Implementation uses Java's own UUID class.
generateRandomCode in interface RandomCodeGeneratorfor details on the formatting.Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.