Java UUID Create generateUUID()

Here you can find the source of generateUUID()

Description

Generate Samsung uuid.

License

Apache License

Return

the string

Declaration

public static String generateUUID() 

Method Source Code

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

import java.util.UUID;

public class Main {
    /**/*from   www .  j a v  a2 s  .  c o m*/
     * Generate Samsung uuid.
     * format: 4a682b0b-0361-dbae-6155-XXXXXXXXXXXX
     * 
     * @return the string
     */
    public static String generateUUID() {
        String uuid_prefix = "4a682b0b-0361-dbae-6155";
        String uuid = String.valueOf(UUID.randomUUID());
        String uuid_suffix = uuid.substring(uuid.lastIndexOf("-"));

        return uuid_prefix + uuid_suffix;
    }
}

Related

  1. generateUuid()
  2. generateUUID()
  3. generateUUID()
  4. generateUUID()
  5. generateUUID()
  6. generateUUID()
  7. generateUuid(boolean dash)
  8. generateUUID(int numchars)
  9. generateUUID(Object o)