- Notifications
You must be signed in to change notification settings - Fork8
Java implementation of K-Sortable Globally Unique IDs
License
NotificationsYou must be signed in to change notification settings
akhawaja/ksuid
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A Java implementation of theSegment's KSUID library. For a full treatment of why this came about, you can read theblog post on their website.
This library can be downloaded from Maven Central by adding the following as a dependency in your pom.xml file:
<dependency> <groupId>com.amirkhawaja</groupId> <artifactId>ksuid</artifactId> <version>1.0.0</version></dependency>
finalKsuidksuid =newKsuid();finalStringuid =ksuid.generate();// e.g. output: Be785NYYxP29BJiAJPupfsXuGpRfinalStringdecoded =ksuid.parse(uid);// e.g. output: Time: 2017-07-08T21:13:08Z[UTC]// Timestamp: 1499548388// Payload: [-42, 24, -60, -3, -66, 38, 32, 9, 62, -22, 95, -79, 123, -122, -91, 0]
- 1.0.0: Initial public release.
About
Java implementation of K-Sortable Globally Unique IDs
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.