Example usage for java.util UUID variant

List of usage examples for java.util UUID variant

Introduction

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

Prototype

public int variant() 

Source Link

Document

The variant number associated with this UUID .

Usage

From source file:Main.java

public static void main(String[] args) {
    // creating UUID      
    UUID uid = UUID.randomUUID();

    // checking variant value
    System.out.println("Variant value: " + uid.variant());
}