Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def strToUUID(hyphenlessUuid: String): UUID = {
- val bi = BigInt(hyphenlessUuid, 16)
- val l = (bigInteger >> 64).longValue
- val r = bigInteger.longValue
- new UUID(l, r)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement