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

net.finmath.smartcontract.util.TradeUtils Maven / Gradle / Ivy

package net.finmath.smartcontract.util;

import java.util.UUID;

public class TradeUtils {

	private TradeUtils(){}

	/**
	 * create a unique trade id as a substring of a java.util.UUID.randomUUID
	 * @return unique trade id
	 */
	public static String getUniqueTradeId(){
		String uniqueID = UUID.randomUUID().toString().replace("-", "").substring(0, 17);
		return "ID-" + uniqueID;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy