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

fr.profi.mzdb.util.misc.AbstractInMemoryIdGen Maven / Gradle / Ivy

There is a newer version: 0.0.27
Show newest version
package fr.profi.mzdb.util.misc;

import java.util.concurrent.atomic.AtomicInteger;

public abstract class AbstractInMemoryIdGen {

	private static AtomicInteger _idSequence = new AtomicInteger(0);

	public static int generateNewId() {
		return _idSequence.incrementAndGet();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy