public class Dimension extends Object implements Serializable, Cloneable
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 |
---|---|
Dimension |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the dimension.
|
String |
getValue()
The value representing the dimension measurement
|
int |
hashCode() |
void |
setName(String name)
The name of the dimension.
|
void |
setValue(String value)
The value representing the dimension measurement
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Dimension |
withName(String name)
The name of the dimension.
|
Dimension |
withValue(String value)
The value representing the dimension measurement
|
public String getName()
Constraints:
Length: 1 - 255
public void setName(String name)
Constraints:
Length: 1 - 255
name
- The name of the dimension.public Dimension withName(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 String getValue()
Constraints:
Length: 1 - 255
public void setValue(String value)
Constraints:
Length: 1 - 255
value
- The value representing the dimension measurementpublic Dimension withValue(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.