Class UiDataStats
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.frontend.util.impl.UiDataStats
-
public class UiDataStats extends java.lang.ObjectUtility 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 voidcountCstics(java.util.List<UiGroupData> groups)Analyzes recursively the runtime configuration, or the provided subtree, using the provided group as root.protected voidcountValues(java.util.List<CsticData> cstics)java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-