Package org.jppf.utils
Class JPPFUuid
java.lang.Object
org.jppf.utils.JPPFUuid
Utility methods to generate UUIDs in various formats.
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringhexUUID(boolean upper) Create a UUID in hexadecimal format.static StringCreate a UUID in a standard format as described inUUID.toString().static StringnormalUUID(boolean upper) Create a UUID in a standard format as described inUUID.toString().
-
Constructor Details
-
JPPFUuid
public JPPFUuid()
-
-
Method Details
-
normalUUID
Create a UUID in a standard format as described inUUID.toString().- Returns:
- a normalized UUID represented as a string.
-
normalUUID
Create a UUID in a standard format as described inUUID.toString().- Parameters:
upper- whether to return an uppercase string.- Returns:
- a normalized UUID represented as a string.
-
hexUUID
Create a UUID in hexadecimal format.- Parameters:
upper- whether to return an uppercase string.- Returns:
- a normalized UUID represented as a string.
-