Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 586 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 586 Bytes

ylem-ids

The ylem-ids project contains code for working with identifiers, such as generating them via LongIdGenerator and encoding/decoding them using LongIdCodec.

Example

// Generate identifiers
LongIdGenerator ids = new SimpleLongIdGenerator();
long id = ids.next();

// Encoding and decoding
LongIdCodec<String> codec = new Base62LongIdCodec();
String encoded = codec.encode(id);
long decoded = codec.decode(encoded);

License

This project is licensed under the MIT license, see the file LICENSE.md for details.