com.github.hughwick:id

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

GroupId

GroupId

com.github.hughwick
ArtifactId

ArtifactId

id
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

Download id

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.hughwick/id/ -->
<dependency>
    <groupId>com.github.hughwick</groupId>
    <artifactId>id</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.hughwick/id/
implementation 'com.github.hughwick:id:1.0.2'
// https://jarcasting.com/artifacts/com.github.hughwick/id/
implementation ("com.github.hughwick:id:1.0.2")
'com.github.hughwick:id:jar:1.0.2'
<dependency org="com.github.hughwick" name="id" rev="1.0.2">
  <artifact name="id" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.hughwick', module='id', version='1.0.2')
)
libraryDependencies += "com.github.hughwick" % "id" % "1.0.2"
[com.github.hughwick/id "1.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

id

id 是一款为 java 设计常见 ID 实现策略。

Maven Central

快速开始

maven 引入

<dependency>
  <groupId>com.github.hughwick</groupId>
  <artifactId>id</artifactId>
  <version>1.0.2</version>
</dependency>

入门例子

测试代码

String uniqueId = IdSequence.snowflake();
System.out.println(uniqueId);
  • 结果
1299505900110270464

Versions

Version
1.0.2
1.0.1
1.0.0