*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.iom.orb
Class UUIDConverter
java.lang.Object
com.sas.iom.orb.UUIDConverter
@SASScope("ALL")
@BinaryCompatibilityOnly
public class UUIDConverter
extends Object
A utility for converting between UUIDs and Strings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanequals(UUID uuid1, UUID uuid2) Compares toUUIDobjects for equality.static UUIDstringToUUID(String str) Convert a String to a UUID.static StringuuidToString(UUID uuid) Convert a UUID to a String.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
uuidToString
public static String uuidToString(UUID uuid) Convert a UUID to a String. The resulting String will have the format 11111111-2222-3333-4444-444444444444 where 11111111 will be a hex representation of Data1, 2222 will be a hex representation of Data2, and so on.- Parameters:
uuid- the UUID to convert- Returns:
- a String representation of the UUID
-
stringToUUID
public static UUID stringToUUID(String str) Convert a String to a UUID. The input String should have the format 11111111-2222-3333-4444-444444444444 where 11111111 is a hex representation of Data1, 2222 is a hex representation of Data2, and so on.- Parameters:
str- the String to convert- Returns:
- the UUID represented by the String
-
equals
public static boolean equals(UUID uuid1, UUID uuid2) Compares toUUIDobjects for equality. TwoUUIDobjects are equal if all their fields are equal.- Parameters:
uuid1-UUIDobject to compareuuid2-UUIDobject to compare- Returns:
trueif the twoUUIDobjects are equal
-