| Modifier | Constructor and Description |
|---|---|
protected |
DefaultMetadata(String name,
String displayName,
String description,
MetricType type,
String unit,
boolean reusable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Optional<String> |
getDescription()
Returns the description of the metric.
|
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 |
Optional<String> |
getUnit() |
int |
hashCode() |
boolean |
isReusable() |
String |
toString() |
protected DefaultMetadata(String name, String displayName, String description, MetricType type, String unit, boolean reusable)
public String getName()
Metadatapublic String getDisplayName()
MetadatagetDisplayName in interface Metadatapublic Optional<String> getDescription()
MetadatagetDescription in interface Metadatapublic String getType()
MetadataMetricType.getType in interface MetadataMetricTypepublic MetricType getTypeRaw()
MetadataMetricType of the metricgetTypeRaw in interface MetadataMetricTypepublic boolean isReusable()
isReusable in interface MetadataCopyright © 2019. All rights reserved.