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

com.power.common.util.UUIDUtil Maven / Gradle / Ivy

There is a newer version: 2.2.3
Show newest version
package com.power.common.util;

import java.util.UUID;

/**
 * @author yu 2018/10/14.
 */
public class UUIDUtil {


    /**
     * uuid
     * @return string
     */
    public static String getUuid(){
        return UUID.randomUUID().toString();
    }

    /**
     * 32位uuid
     * @return string
     */
    public static String getUuid32(){
        return UUID.randomUUID().toString().replace("-","");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy