Package org.eclipse.microprofile.metrics
Class DefaultMetadata
java.lang.Object
org.eclipse.microprofile.metrics.DefaultMetadata
- All Implemented Interfaces:
Metadata
The default implementation of
Metadata
-
Constructor Summary
ModifierConstructorDescriptionprotected
DefaultMetadata
(String name, String description, String unit) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the description of the metric if set, otherwise this method returns the emptyString
.getName()
Returns the metric name.getUnit()
Returns the unit of this metric if set, otherwise this method returnsMetricUnits.NONE
int
hashCode()
toString()
unit()
-
Constructor Details
-
DefaultMetadata
-
-
Method Details
-
getName
Description copied from interface:Metadata
Returns the metric name. -
getDescription
Description copied from interface:Metadata
Returns the description of the metric if set, otherwise this method returns the emptyString
.- Specified by:
getDescription
in interfaceMetadata
- Returns:
- the description
-
description
- Specified by:
description
in interfaceMetadata
-
getUnit
Description copied from interface:Metadata
Returns the unit of this metric if set, otherwise this method returnsMetricUnits.NONE
-
unit
-
equals
-
hashCode
public int hashCode() -
toString
-