Here you can find the source of generateCurrentTimestampUUID()
public static String generateCurrentTimestampUUID()
//package com.java2s; /*// w w w . j a v a 2 s.com Java UUID Generator (JUG)????UUID?????LGPL????????MAC????? UUID????License??????? Java 5????????UUID???????????????Version 3/4?UUID?*/ import java.util.UUID; public class Main { public static String generateCurrentTimestampUUID() { UUID uuid = UUID.randomUUID(); String uuidStr = uuid.toString(); uuidStr = uuidStr.replaceAll("-", ""); return String.valueOf(System.currentTimeMillis()) + uuidStr.substring(0, 19); } }