Java UUID Create generateUUID()

Here you can find the source of generateUUID()

Description

UUID generator random

License

Apache License

Return

(String) string UUID random

Declaration

public static String generateUUID() 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.UUID;

public class Main {
    /**/*from   w  ww  .j  ava2s  .c  o  m*/
     * <p>UUID generator random</p>
     * 
     * @author Alberto Cerqueira
     * @since 1.0
     * @return (String) string UUID random
     */
    public static String generateUUID() {
        return UUID.randomUUID().getLeastSignificantBits() + "";
    }
}

Related

  1. generateUniqueId()
  2. generateUniqueString()
  3. generateUniqueText()
  4. generateUri()
  5. generateURN()
  6. generateUUID()
  7. generateUUID()
  8. generateUUID()
  9. generateUUID()