Metadata
| Modifier and Type | Field and Description |
|---|---|
| private final String | description
A human readable description. |
| private final String | name
Name of the metric. |
| private final String | unit
Unit of the metric. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Optional | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | getDescription()
Implements org. Returns the description of the metric if set, otherwise this method returns the empty |
| public String | |
| public String | getUnit()
Implements org. Returns the unit of this metric if set, otherwise this method returns |
| public int | |
| public String | |
| public Optional |
| description | back to summary |
|---|---|
| private final String description A human readable description. An optional field which holds the description of the metric object. | |
| name | back to summary |
|---|---|
| private final String name Name of the metric. A required field which holds the name of the metric object. | |
| unit | back to summary |
|---|---|
| private final String unit Unit of the metric. An optional field which holds the Unit of the metric object. | |
| DefaultMetadata | back to summary |
|---|---|
| protected DefaultMetadata(String name, String description, String unit) | |
| description | back to summary |
|---|---|
| public Optional Implements org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements org. Doc from org. Returns the description of the metric if set, otherwise this method returns the empty | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Returns the metric name. | |
| getUnit | back to summary |
|---|---|
| public String getUnit() Implements org. Doc from org. Returns the unit of this metric if set, otherwise this method returns | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| unit | back to summary |
|---|---|
| public Optional Implements org.
| |