MetricsInfo@Public @Evolving public abstract class AbstractMetric extends java.lang.Object implements MetricsInfo
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractMetric(MetricsInfo info) |
Construct the metric
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
description() |
Typically the description corresponds to annotation
Metric.about()
or the name of the class. |
boolean |
equals(java.lang.Object obj) |
|
int |
hashCode() |
|
protected MetricsInfo |
info() |
|
java.lang.String |
name() |
Typically name corresponds to annotation
Metric.value() or
the name of the class. |
java.lang.String |
toString() |
|
abstract MetricType |
type() |
Get the type of the metric
|
abstract java.lang.Number |
value() |
Get the value of the metric
|
abstract void |
visit(MetricsVisitor visitor) |
Accept a visitor interface
|
protected AbstractMetric(MetricsInfo info)
info - about the metricpublic java.lang.String name()
MetricsInfoMetric.value() or
the name of the class.name in interface MetricsInfopublic java.lang.String description()
MetricsInfoMetric.about()
or the name of the class.description in interface MetricsInfoprotected MetricsInfo info()
public abstract java.lang.Number value()
public abstract MetricType type()
public abstract void visit(MetricsVisitor visitor)
visitor - of the metricpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.