| Modifier | Constructor and Description |
|---|---|
protected |
DefaultMetadata(String name,
String description,
String unit) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
description() |
boolean |
equals(Object o) |
String |
getDescription()
Returns the description of the metric if set, otherwise this method returns the empty
String. |
String |
getName()
Returns the metric name.
|
String |
getUnit()
Returns the unit of this metric if set, otherwise this method returns
MetricUnits.NONE |
int |
hashCode() |
String |
toString() |
Optional<String> |
unit() |
public String getName()
Metadatapublic String getDescription()
MetadataString.getDescription in interface Metadatapublic Optional<String> description()
description in interface Metadatapublic String getUnit()
MetadataMetricUnits.NONECopyright © 2017 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.