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()
Metadata
public String getDisplayName()
Metadata
getDisplayName
in interface Metadata
public Optional<String> displayName()
displayName
in interface Metadata
public String getDescription()
Metadata
String
.getDescription
in interface Metadata
public Optional<String> description()
description
in interface Metadata
public String getType()
Metadata
MetricType
.getType
in interface Metadata
MetricType
public MetricType getTypeRaw()
Metadata
MetricType
of the metric if set, otherwise it returns MetricType.INVALID
getTypeRaw
in interface Metadata
MetricType
public String getUnit()
Metadata
MetricUnits.NONE
Copyright © 2020. All rights reserved.