public class Dimension
extends java.lang.Object
implements java.io.Serializable
The Dimension data type further expands on the identity
of a metric using a Name, Value pair.
| Constructor and Description |
|---|
Dimension() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the dimension.
|
java.lang.String |
getValue()
The value representing the dimension measurement
|
int |
hashCode() |
void |
setName(java.lang.String name)
The name of the dimension.
|
void |
setValue(java.lang.String value)
The value representing the dimension measurement
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Dimension |
withName(java.lang.String name)
The name of the dimension.
|
Dimension |
withValue(java.lang.String value)
The value representing the dimension measurement
|
public java.lang.String getName()
Constraints:
Length: 1 - 255
public void setName(java.lang.String name)
Constraints:
Length: 1 - 255
name - The name of the dimension.public Dimension withName(java.lang.String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
name - The name of the dimension.public java.lang.String getValue()
Constraints:
Length: 1 - 255
public void setValue(java.lang.String value)
Constraints:
Length: 1 - 255
value - The value representing the dimension measurementpublic Dimension withValue(java.lang.String value)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
value - The value representing the dimension measurementpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object