UUID.clockSequence() has the following syntax.
public int clockSequence()
In the following code shows how to use UUID.clockSequence() method.
/*w ww .ja va 2 s . c o m*/ import java.util.UUID; public class Main { public static void main(String[] args) { // creating UUID UUID x = UUID.randomUUID(); // getting clock sequence value System.out.println("Clock sequence value: "+x.clockSequence()); } }
The code above generates the following result.