Modifier | Constructor and Description |
---|---|
protected |
DefaultMetadata(java.lang.String name,
java.lang.String description,
java.lang.String unit) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
description() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDescription()
Returns the description of the metric if set, otherwise this method returns the empty
String . |
java.lang.String |
getName()
Returns the metric name.
|
java.lang.String |
getUnit()
Returns the unit of this metric if set, otherwise this method returns
MetricUnits.NONE |
int |
hashCode() |
java.lang.String |
toString() |
java.util.Optional<java.lang.String> |
unit() |
protected DefaultMetadata(java.lang.String name, java.lang.String description, java.lang.String unit)
public java.lang.String getName()
Metadata
public java.lang.String getDescription()
Metadata
String
.getDescription
in interface Metadata
public java.util.Optional<java.lang.String> description()
description
in interface Metadata
public java.lang.String getUnit()
Metadata
MetricUnits.NONE
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object