Class UiDataStats


  • public class UiDataStats
    extends java.lang.Object
    Utility class for logging, collects statistical data regarding the size of the dynamic runtime configuration.
    The following data is collected:
    • total number of values
    • total number of cstics
    • total number of UI groups
    • maximum nesting depth
    • Constructor Summary

      Constructors 
      Constructor Description
      UiDataStats()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void countCstics​(java.util.List<UiGroupData> groups)
      Analyzes recursively the runtime configuration, or the provided subtree, using the provided group as root.
      protected void countValues​(java.util.List<CsticData> cstics)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • UiDataStats

        public UiDataStats()
    • Method Detail

      • countCstics

        public void countCstics​(java.util.List<UiGroupData> groups)
        Analyzes recursively the runtime configuration, or the provided subtree, using the provided group as root. toString() will return the results as formatted string.
        The result will only be accurate for the first invocation. To count again, create a new instance.
        Parameters:
        groups - root group
      • countValues

        protected void countValues​(java.util.List<CsticData> cstics)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object