All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.javaclub.cdl.client.util.GenerateUUID Maven / Gradle / Ivy

There is a newer version: 2.3.9
Show newest version
package com.github.javaclub.cdl.client.util;

import java.util.concurrent.atomic.AtomicLong;

public class GenerateUUID {
	public static AtomicLong id = new AtomicLong();
	
	public static long getUUID(){
		if(id.get() > Long.MAX_VALUE - 1000L){
			id.set(0);
		}
		
		return id.getAndIncrement();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy