All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.teasoft.honey.distribution.UUID Maven / Gradle / Ivy

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();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy