https://github.com/matchilling/uuid
https://github.com/matchilling/uuid
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/matchilling/uuid
- Owner: matchilling
- License: apache-2.0
- Created: 2025-12-20T06:27:18.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-12-20T09:22:19.000Z (7 months ago)
- Last Synced: 2025-12-22T14:43:23.910Z (7 months ago)
- Language: Java
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.