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

https://github.com/matchilling/uuid


https://github.com/matchilling/uuid

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# UUID

A Java library for generating and manipulating UUIDs (Universally Unique Identifiers).

## Example Usage

```java
import com.matchilling.uuid.UUID7;

public class Example {

static void main(String[] args) {
// Generates a version 7 Java UUID using the current Unix epoch timestamp in milliseconds.
java.util.UUID a = UUID7.fromNow();

// Generates a UUIDv7 with the specified Unix epoch timestamp in milliseconds.
java.util.UUID b = UUID7.fromTimestamp(1672531199000L);
}
}
```

## License

This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE.md) file for details.