类 GeneratedValueUtils
java.lang.Object
com.cdkjframework.util.make.AbstractUUIDGenerator
com.cdkjframework.util.make.GeneratedValueUtils
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static com.github.f4b6a3.ulid.Ulid
获取Monotonic ULIDstatic com.github.f4b6a3.ulid.Ulid
getMonotonicUlid
(long time) 获取Monotonic ULIDstatic String
获取Monotonic ULID字符串static String
获取Monotonic ULID字符串static String
getMonotonicUlidString
(long time) 获取Monotonic ULID字符串static String
获取有序UUIDstatic String
获取有序UUIDstatic Integer
getRandom
(int digit) 生成指定位数整数随机数static String
随机字符(默认 4 位)static String
getRandomCharacter
(int verifySize) 随机字符(默认 4 位)static String
getRandomCharacter
(int verifySize, String sources) 随机字符static double
getRandomDouble
(double min, double max) 生成指定大小 doublestatic int
getRandomInteger
(int min, int max) 生成指定大小整数static com.github.f4b6a3.ulid.Ulid
getUlid()
获取 ULIDstatic com.github.f4b6a3.ulid.Ulid
getUlid
(long time) 获取 ULIDstatic String
获取ULID字符串static String
获取ULID字符串static UUID
getUuid()
返回UUID 值static String
返回不带横线UUIDstatic String
生成 UUIDstatic void
-
字段详细资料
-
VERIFY_CODES
使用到Algerian字体,系统里没有的话需要安装字体,字体只显示大写,去掉了1,0,i,o几个容易混淆的字符- 另请参阅:
-
-
构造器详细资料
-
GeneratedValueUtils
public GeneratedValueUtils()
-
-
方法详细资料
-
getUlidString
获取ULID字符串- 返回:
- 返回结果
-
getUlidByTimeString
获取ULID字符串- 返回:
- 返回结果
-
getUlid
public static com.github.f4b6a3.ulid.Ulid getUlid()获取 ULID- 返回:
- 返回结果
-
getUlid
public static com.github.f4b6a3.ulid.Ulid getUlid(long time) 获取 ULID- 返回:
- 返回结果
-
getMonotonicUlidString
获取Monotonic ULID字符串- 返回:
- 返回结果
-
getMonotonicUlid
public static com.github.f4b6a3.ulid.Ulid getMonotonicUlid()获取Monotonic ULID- 返回:
- 返回结果
-
getMonotonicUlidString
获取Monotonic ULID字符串- 返回:
- 返回结果
-
getMonotonicUlidByTimeString
获取Monotonic ULID字符串- 返回:
- 返回结果
-
getMonotonicUlid
public static com.github.f4b6a3.ulid.Ulid getMonotonicUlid(long time) 获取Monotonic ULID- 返回:
- 返回结果
-
getOrderlyUuid
获取有序UUID- 返回:
- 返回UUID字符串
-
getOrderlyShortUuid
获取有序UUID- 返回:
- 返回UUID字符串
-
main
-
getUuid
返回UUID 值- 返回:
- UUID
-
getUuidString
生成 UUID- 返回:
- 返回结果
-
getUuidNotTransverseLine
返回不带横线UUID- 返回:
- 返回
-
getRandom
生成指定位数整数随机数- 参数:
digit
- 指定位数- 返回:
- 返回随机数
-
getRandomCharacter
随机字符- 参数:
verifySize
- 长度sources
- 源字符- 返回:
- 返回结果
-
getRandomCharacter
随机字符(默认 4 位)- 返回:
- 返回结果
-
getRandomCharacter
随机字符(默认 4 位)- 参数:
verifySize
-- 返回:
-
getRandomInteger
public static int getRandomInteger(int min, int max) 生成指定大小整数- 参数:
min
- 最小值max
- 最大值- 返回:
- 返回结果
-
getRandomDouble
public static double getRandomDouble(double min, double max) 生成指定大小 double- 参数:
min
- 最小值max
- 最大值- 返回:
- 返回结果
-