Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. def strToUUID(hyphenlessUuid: String): UUID = {
  2. val bi = BigInt(hyphenlessUuid, 16)
  3. val l = (bigInteger >> 64).longValue
  4. val r = bigInteger.longValue
  5. new UUID(l, r)
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement