added formatUuid function with uuid as args
parent
26f1d07238
commit
ca1e3b996d
|
@ -9,6 +9,10 @@ public class Formatter {
|
||||||
return uuid.replaceAll("-", "");
|
return uuid.replaceAll("-", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String formatUuid(UUID uuid) {
|
||||||
|
return formatUuid(uuid.toString());
|
||||||
|
}
|
||||||
|
|
||||||
public UUID stringToUuid(String s) {
|
public UUID stringToUuid(String s) {
|
||||||
BigInteger bigInteger = new BigInteger(s.substring(0, 16), 16);
|
BigInteger bigInteger = new BigInteger(s.substring(0, 16), 16);
|
||||||
BigInteger bigInteger1 = new BigInteger(s.substring(16, 32), 16);
|
BigInteger bigInteger1 = new BigInteger(s.substring(16, 32), 16);
|
||||||
|
|
Loading…
Reference in New Issue