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

cz.mmsparams.api.utils.CommonUtils Maven / Gradle / Ivy

The newest version!
package cz.mmsparams.api.utils;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

public class CommonUtils
{
    private CommonUtils()
    {
    }

    public static String getUUID()
    {
        return UUID.randomUUID().toString();
    }

    public static List getUUIDList(int count)
    {
        List l = new ArrayList<>();
        if (count < 1)
            return l;
        for (int i = 0; i < count; i++)
            l.add(getUUID());
        return l;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy