Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Java implementation of K-Sortable Globally Unique IDs

License

NotificationsYou must be signed in to change notification settings

akhawaja/ksuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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.

Maven Central

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>

Quick Start

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]

History

  • 1.0.0: Initial public release.

About

Java implementation of K-Sortable Globally Unique IDs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp