yx_lang library
Classes
-
AbstractInt<
T extends Number> - Byte
- 限制int为8位Byte
- Decimal
- A number that can be exactly written with a finite number of digits in the decimal system.
- Integer
- 限制int为32位Integer
- Long
- 限制int为64位Long
- Math
- math的封装
- MurmurHash
-
Murmur3 哈希算法实现
- NanoId
- NanoId,一个小型、安全、对 URL友好的唯一字符串 ID 生成器,特点:
-
Number<
T> - Short
- 限制int为16位Short
- Snowflake
-
Twitter的Snowflake 算法
分布式系统中,有一些需要使用全局唯一ID的场景,有些时候我们希望能使用一种简单一些的ID,并且希望ID能够按照时间有序生成。 - UUID
-
提供通用唯一识别码(universally unique identifier)(UUID)实现,UUID表示一个128位的值。