public static enum MetricDatum.Field extends Enum<MetricDatum.Field>
Enum Constant and Description |
---|
METRIC |
METRIC_DIMENSION |
TIMESTAMP |
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Gets field's index.
|
String |
getName()
Gets field's name.
|
String |
toString()
Gets field's attributes to string.
|
static MetricDatum.Field |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricDatum.Field[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricDatum.Field METRIC_DIMENSION
public static final MetricDatum.Field TIMESTAMP
public static final MetricDatum.Field METRIC
public static MetricDatum.Field[] values()
for (MetricDatum.Field c : MetricDatum.Field.values()) System.out.println(c);
public static MetricDatum.Field valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic int getIndex()
public String getName()
public String toString()
toString
in class Enum<MetricDatum.Field>
Copyright © 2010-2015 The Apache Software Foundation. All Rights Reserved.