Class IDGenerator


  • public class IDGenerator
    extends Object
    Utility class that generates unique IDs
    Since:
    Jan 5, 2009
    Author:
    Anil.Saldhana@redhat.com
    • Constructor Detail

      • IDGenerator

        public IDGenerator()
    • Method Detail

      • create

        public static String create()
      • create

        public static String create​(String prefix)
        Create an id that is prefixed by a string
        Parameters:
        prefix -
        Returns:
        an id
        Throws:
        IllegalArgumentException - when prefix is null