Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 227 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 227 Bytes

UniqueIDUtil

Twitter snowflake 算法的 Java 实现。

How to use

UniqueIDUtil.getInstance().nextId();

or

UniqueIDUtil.getInstance(3, 4).nextId();