Example usage for java.util UUID randomUUID

List of usage examples for java.util UUID randomUUID

Introduction

In this page you can find the example usage for java.util UUID randomUUID.

Prototype

public static UUID randomUUID() 

Source Link

Document

Static factory to retrieve a type 4 (pseudo randomly generated) UUID.

Usage

From source file:Main.java

public static String getUuid() {
    return UUID.randomUUID().toString().trim();
}

From source file:Main.java

public static String getUUIDNum() {
    return UUID.randomUUID().toString().replace("-", "").toUpperCase();
}

From source file:Main.java

public static String generateId() {
    return UUID.randomUUID().toString();
}

From source file:Main.java

public static String gerarIDUnico() {
    return UUID.randomUUID().toString();
}

From source file:Main.java

public static String generateUUID() {
    return UUID.randomUUID().toString().replaceAll("-", "");
}

From source file:Main.java

public static final String uuid() {
    return UUID.randomUUID().toString().replaceAll("-", "").toUpperCase();
}

From source file:Main.java

public static String UUIDGenerator() {
    return UUID.randomUUID().toString().replaceAll("-", "");
}

From source file:Main.java

public static String generateNonce() {
    return UUID.randomUUID().toString().replaceAll("-", "").substring(0, 6);
}

From source file:Main.java

public static String getUUID() {
    UUID uuid = UUID.randomUUID();
    return uuid.toString();
}

From source file:Main.java

public static String getRandomString() {
    return UUID.randomUUID().toString();
}