added formatUuid function with uuid as args

master
alex 2022-04-10 17:43:13 +02:00
parent 26f1d07238
commit ca1e3b996d
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@ public class Formatter {
return uuid.replaceAll("-", "");
}
public String formatUuid(UUID uuid) {
return formatUuid(uuid.toString());
}
public UUID stringToUuid(String s) {
BigInteger bigInteger = new BigInteger(s.substring(0, 16), 16);
BigInteger bigInteger1 = new BigInteger(s.substring(16, 32), 16);