How to cast the String to UUID? (RTC SDK)
Accepted answer
see the UUID.valueOf() method
from the plain java javadoc
public static UUID valueOf(java.lang.String uuidValue)
from the plain java javadoc
public static UUID valueOf(java.lang.String uuidValue)
-
Reconstitute a UUID from a String representation. This method will do basic heuristic checking to see if it appears to be a valid representation for our UUID. This method serves as a mechanism for a client to rebuild a UUID object by value : it is expected that the value was derived from a valid UUID instance at some point in time.
-
- Parameters:
-
uuidValue
- desired value for new UUID - Returns:
- UUID corresponding to specified value
- Throws:
-
java.lang.IllegalArgumentException
- for invalid uuidValue