An open API service indexing awesome lists of open source software.

https://github.com/levelfourab/ylem-ids

Generate, encode and decode identifiers
https://github.com/levelfourab/ylem-ids

Last synced: 27 days ago
JSON representation

Generate, encode and decode identifiers

Awesome Lists containing this project

README

          

# 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

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

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

## License

This project is licensed under the [MIT license](https://opensource.org/licenses/MIT),
see the file `LICENSE.md` for details.