Class UuidUtils

java.lang.Object
me.zhyd.oauth.utils.UuidUtils

public class UuidUtils extends Object
高性能的创建UUID的工具类,https://github.com/lets-mica/mica
Since:
1.9.3
Author:
yadong.zhang (yadong.zhang0415(a)gmail.com)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    生成uuid,采用 jdk 9 的形式,优化性能 copy from mica:https://github.com/lets-mica/mica/blob/master/mica-core/src/main/java/net/dreamlu/mica/core/utils/StringUtil.java#L335

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UuidUtils

      public UuidUtils()
  • Method Details

    • getUUID

      public static String getUUID()
      生成uuid,采用 jdk 9 的形式,优化性能 copy from mica:https://github.com/lets-mica/mica/blob/master/mica-core/src/main/java/net/dreamlu/mica/core/utils/StringUtil.java#L335

      关于mica uuid生成方式的压测结果,可以参考:https://github.com/lets-mica/mica-jmh/wiki/uuid

      Returns:
      UUID