Android Utililty Methods UUID Create

List of utility methods to do UUID Create

Description

The list of methods to do UUID Create are organized into topic(s).

Method

StringgetRandomUUID()
get Random UUID
UUID uuid = UUID.randomUUID();
return uuid.toString().replaceAll("-", "");
StringcreateUUID()
create UUID
return UUID.randomUUID().toString();
StringgetUUID()
get UUID
String str = UUID.randomUUID().toString();
return str;
StringgetNewUUID()
Generates a variant 2, version 4 (randomly generated number) UUID as per RFC 4122.
return UUID.randomUUID().toString();
StringUUID()
Returns random UUID
return UUID.randomUUID().toString();
UUIDgenerateUUID(String value)
generate UUID
return UUID.nameUUIDFromBytes(md5(value).getBytes());