org.teasoft.honey.distribution.UUID Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of honey Show documentation
Show all versions of honey Show documentation
Honey is the implementation of the Bee.
The newest version!
/*
* Copyright 2016-2022 the original author.All rights reserved.
* Kingstar([email protected])
* The license,see the LICENSE file.
*/
package org.teasoft.honey.distribution;
/**
* @author Kingstar
* @since 1.17
*/
public class UUID {
private UUID() {}
public static String getId() {
return java.util.UUID.randomUUID().toString().replace("-", "");
}
public static String getId(boolean includeSeparator) {
if (includeSeparator)
return java.util.UUID.randomUUID().toString();
else
return getId();
}
}