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