Java UUID Create getUUID(String id)

Here you can find the source of getUUID(String id)

Description

get UUID

License

Creative Commons License

Declaration

private static UUID getUUID(String id) 

Method Source Code

//package com.java2s;
//License from project: Creative Commons License 

import java.util.*;

public class Main {
    private static UUID getUUID(String id) {
        return UUID.fromString(id.substring(0, 8) + "-" + id.substring(8, 12) + "-" + id.substring(12, 16) + "-"
                + id.substring(16, 20) + "-" + id.substring(20, 32));
    }//ww  w  .j a  va2  s.  co  m
}

Related

  1. genRandom(int length)
  2. genRandomString(int len)
  3. get36UUID()
  4. getUUID()
  5. getUUID()
  6. getUUIDForSql(UUID uuid)
  7. getUUIDValue(String url, String key)
  8. isUUID(String string)
  9. parseUuid(String s)