Java UUID Create generateUri()

Here you can find the source of generateUri()

Description

generate Uri

License

Open Source License

Declaration

public static String generateUri() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.UUID;

public class Main {
    private static final String PREFIX = "scipub:";

    public static String generateUri() {
        return PREFIX + UUID.randomUUID().toString();
    }/*from   w w w .  j av a 2  s.c  om*/
}

Related

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