Class ObjectCounter


  • public class ObjectCounter
    extends java.lang.Object
    A helper for counting the number of an object that exists
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getNewID()
      Every time this is called, it will return the next int in the counter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectCounter

        public ObjectCounter()
      • ObjectCounter

        public ObjectCounter​(int offset)
    • Method Detail

      • getNewID

        public int getNewID()
        Every time this is called, it will return the next int in the counter.
        Returns:
        Next int