io.baltoro.util.UUIDGenerator Maven / Gradle / Ivy
package io.baltoro.util;
import java.util.UUID;
import io.baltoro.domain.ObjectTypeEnum;
public class UUIDGenerator
{
public static String uuid(ObjectTypeEnum type)
{
return type.toString()+"-"+UUID.randomUUID().toString().toUpperCase();
}
public static String uuid(String type)
{
return type+"-"+UUID.randomUUID().toString().toUpperCase();
}
public static String randomString(int len)
{
return UUID.randomUUID().toString().substring(0, len).toUpperCase();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy