Class CallCounterCollection


  • public class CallCounterCollection
    extends java.lang.Object
    Collection of CallCounter with static methods to call from anywhere in code
    Author:
    nk-fouque
    • Method Summary

      Modifier and Type Method Description
      static void call​(java.lang.String functionName)
      Increments the call count of the function in parameter, creates a new counter if not already done
      static int getCallCount​(java.lang.String functionName)  
      static void reset​(java.lang.String functionName)
      Sets the counter for said function to zero
      static void resetAll()  
      • Methods inherited from class java.lang.Object

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

      • CallCounterCollection

        public CallCounterCollection()
    • Method Detail

      • call

        public static void call​(java.lang.String functionName)
        Increments the call count of the function in parameter, creates a new counter if not already done
      • reset

        public static void reset​(java.lang.String functionName)
        Sets the counter for said function to zero
      • resetAll

        public static void resetAll()
      • getCallCount

        public static int getCallCount​(java.lang.String functionName)
        Returns:
        The number of time the function in parameter has been called