*** This class provides Binary Compatibility only, not Source Compatibility ***

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 Type
    Method
    Description
    static boolean
    equals(UUID uuid1, UUID uuid2)
    Compares to UUID objects for equality.
    static UUID
    stringToUUID(String str)
    Convert a String to a UUID.
    static String
    uuidToString(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 to UUID objects for equality. Two UUID objects are equal if all their fields are equal.
      Parameters:
      uuid1 - UUID object to compare
      uuid2 - UUID object to compare
      Returns:
      true if the two UUID objects are equal