Package com.yahoo.metrics.simple
Class Identifier
- java.lang.Object
-
- com.yahoo.metrics.simple.Identifier
-
public class Identifier extends java.lang.Object
The name of the metric and its n-dimensional position. Basically a pair of a Point and a metric name. Written to be robust against null input as the API gives very little guidance, converting null to empty string/point. Immutable.- Author:
- Steinar Knutsen
-
-
Constructor Summary
Constructors Constructor Description Identifier(java.lang.String name, Point location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Point
getLocation()
java.lang.String
getName()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Identifier
public Identifier(java.lang.String name, Point location)
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getName
public java.lang.String getName()
-
getLocation
public Point getLocation()
-
-