List of usage examples for java.util UUID randomUUID
public static UUID randomUUID()
From source file:Main.java
public static void main(String[] args) { UUID uid = UUID.randomUUID(); // checking version value System.out.println("Version value: " + uid.version()); }
From source file:Main.java
public static void main(String arg[]) { System.out.println(UUID.randomUUID()); }
From source file:Main.java
public static void main(String[] args) { // creating UUID UUID x = UUID.randomUUID(); // getting clock sequence value System.out.println("Clock sequence value: " + x.clockSequence()); }
From source file:Main.java
public static void main(String[] args) { // creating UUID UUID uid = UUID.randomUUID(); System.out.println("Random UUID value: " + uid); }
From source file:Main.java
public static void main(String[] args) { // creating UUID UUID uid = UUID.randomUUID(); // checking most significant bits System.out.println("Most significant bits: " + uid.getMostSignificantBits()); }
From source file:Main.java
public static void main(String[] args) { // creating UUID UUID uid = UUID.randomUUID(); // checking least significant bits System.out.println("Least significant bits: " + uid.getLeastSignificantBits()); }
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()); }
From source file:Main.java
public static void main(String[] args) { // creating UUID UUID uid = UUID.randomUUID(); // checking string representation System.out.println("String value: " + uid.toString()); }
From source file:Main.java
public static void main(String[] args) { // creating UUID UUID uid = UUID.randomUUID(); // checking hash code value System.out.println("Hash code value: " + uid.hashCode()); }
From source file:Main.java
public static void main(String[] args) { // creating UUID UUID uid = UUID.randomUUID(); // checking time stamp value System.out.println("Time stamp value: " + uid.timestamp()); }