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()
Metadata
public String getDescription()
Metadata
String
.getDescription
in interface Metadata
public Optional<String> description()
description
in interface Metadata
public String getUnit()
Metadata
MetricUnits.NONE
Copyright © 2017 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.