Package org.doomdark.uuid

Examples of org.doomdark.uuid.UUIDGenerator.generateRandomBasedUUID()


  public static void main(String[] args) {
    UUIDGenerator gen = UUIDGenerator.getInstance();
    UUID time = gen.generateTimeBasedUUID();
    System.out.println(time);

    time = gen.generateRandomBasedUUID();
    System.out.println(time);

    for (int i = 0; i < 10; i++) {     
      Timestamp tmp = new Timestamp(new Date().getTime());
      System.out.println(tmp.getTime() + " - " + System.currentTimeMillis());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.