2 * © 2008 INA Service GmbH
4 package net.pterodactylus.util.fcp;
6 import java.util.concurrent.atomic.AtomicLong;
9 * Helper class with utility methods for the FCP protocol.
11 * @author <a href="mailto:dr@ina-germany.de">David Roden</a>
14 public class FcpUtils {
16 /** Counter for unique identifiers. */
17 private static AtomicLong counter = new AtomicLong();
20 * Returns a unique identifier.
22 * @return A unique identifier
24 public static String getUniqueIdentifier() {
25 return new StringBuilder().append(System.currentTimeMillis()).append('-').append(counter.getAndIncrement()).toString();