Package adams.data.id

Class RuntimeIDGenerator


  • public class RuntimeIDGenerator
    extends Object
    Helper class for generating unique IDs at runtime.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Field Detail

      • m_Current

        protected int m_Current
        the current ID.
    • Constructor Detail

      • RuntimeIDGenerator

        protected RuntimeIDGenerator()
        Initializes the generator.
    • Method Detail

      • next

        public int next()
        Returns the next ID.
        Returns:
        the next ID
      • getSingleton

        public static RuntimeIDGenerator getSingleton()
        Returns the singleton of the generator.
        Returns:
        the singleton