
io.magentys.utils.UniqueId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cherry Show documentation
Show all versions of cherry Show documentation
A syntactical sugar project for BDD oriented tests
package io.magentys.utils;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicLong;
/**
* Created by kostasmamalis on 19/05/16.
*/
public class UniqueId {
public static String getUUID(){
return UUID.randomUUID().toString();
}
private static AtomicLong idCounter = new AtomicLong();
public static String incrementalId() {
return String.valueOf(idCounter.getAndIncrement());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy