Package org.doomdark.uuid

Examples of org.doomdark.uuid.UUIDGenerator


* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class UUIDTest {
  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

Related Classes of org.doomdark.uuid.UUIDGenerator

Copyright © 2018 www.massapicom. 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.