Here you can find the source of generateUUIDFrom(String uuidString)
public static final UUID generateUUIDFrom(String uuidString)
//package com.java2s; //License from project: Apache License import java.util.UUID; public class Main { private static final String DELIMITER = "-"; public static final UUID generateUUIDFrom(String uuidString) { // UUID FORMAT : 5bbe204e-7e62-4ab1-ab16-1485dfa07897 StringBuilder uuidFromString = new StringBuilder(uuidString); uuidFromString.insert(8, DELIMITER); uuidFromString.insert(13, DELIMITER); uuidFromString.insert(18, DELIMITER); uuidFromString.insert(23, DELIMITER); return UUID.fromString(uuidFromString.toString().toLowerCase()); }/*from w ww . j a v a 2 s. co m*/ }