public static interface ApiMetrics.ApiMetricsBuilder
| Modifier and Type | Method and Description |
|---|---|
ApiMetrics.ApiMetricsBuilder |
addAccumulator(Supplier<Accumulator> accumulator)
Adds the supplied accumulator to the builder.
|
ApiMetrics.ApiMetricsBuilder |
addMetric(Metric<?> metric)
Add the provided
metric as applicable when analysing the set of packages. |
default ApiMetrics.ApiMetricsBuilder |
addPackage(Package paket)
Adds the provided
paket and all its underlying packages to the set of packages to analyze. |
ApiMetrics.ApiMetricsBuilder |
addPackage(String packageName)
Adds the provided
packageName and all its underlying packages to the set of packages to analyze. |
default ApiMetrics.ApiMetricsBuilder |
addPackageExclusion(Package paket)
Adds the provided
paket and all its underlying packages to the set of excluded packages not to analyze. |
ApiMetrics.ApiMetricsBuilder |
addPackageExclusion(String packageName)
Adds the provided
packageName and all its underlying packages to the set of excluded packages not to analyze. |
ApiMetrics.ApiMetricsBuilder |
addStandardAccumulators()
Adds a set of standard accumulators to the builder.
|
ApiMetrics.ApiMetricsBuilder |
addStandardMetrics()
Add a set of standard metrics as applicable when analysing the set of packages.
|
ApiMetrics |
build()
Analyses and returns ApiMetrics thereby applying all the metrics and accumulators to the set of packages to analyse.
|
default ApiMetrics.ApiMetricsBuilder addPackage(Package paket)
paket and all its underlying packages to the set of packages to analyze.
This method helps in specifying the packages that need to be included in the metrics analysis.paket - Package to analyze (non-null)ApiMetrics.ApiMetricsBuilder addPackage(String packageName)
packageName and all its underlying packages to the set of packages to analyze.
This method helps in specifying the packages that need to be included in the metrics analysis by name.packageName - String representing the package to analyze (non-null)default ApiMetrics.ApiMetricsBuilder addPackageExclusion(Package paket)
paket and all its underlying packages to the set of excluded packages not to analyze.
This method helps in specifying the packages that should be excluded from the metrics analysis.paket - Package not to analyze (non-null)ApiMetrics.ApiMetricsBuilder addPackageExclusion(String packageName)
packageName and all its underlying packages to the set of excluded packages not to analyze.
This method helps in specifying the packages that should be excluded from the metrics analysis by name.packageName - String representing the package not to analyze (non-null)ApiMetrics.ApiMetricsBuilder addMetric(Metric<?> metric)
metric as applicable when analysing the set of packages.
This allows customization of the metrics used in the analysis.metric - Metric to add (non-null)ApiMetrics.ApiMetricsBuilder addStandardMetrics()
ApiMetrics.ApiMetricsBuilder addAccumulator(Supplier<Accumulator> accumulator)
accumulator - Supplier for the Accumulator to be addedApiMetrics.ApiMetricsBuilder addStandardAccumulators()
ApiMetrics build()
Copyright © 2023. All rights reserved.