// Import Java UUID Utils
import java.utils.UUID;
// Execute function fromString() with your string as argument.
// Returns an uuid, which is your string converted into an UUID.
UUID uuid = UUID.fromString(string);
import java.utils.UUID;
String strInput = "-1068942631";
String uuidFromString = UUID.nameUUIDFromBytes( String.valueOf( strInput ).getBytes() ).toString();
System.out.println(uuidFromString);
UUID.fromString(string);