public enum AttributeType extends Enum<AttributeType>
Modifier and Type | Method and Description |
---|---|
String[] |
getAliases() |
String |
getName() |
boolean |
isNumeric() |
static AttributeType |
parse(String typeAsString)
Parses the attribute type from the given string.
|
static AttributeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AttributeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttributeType GAUGE
public static final AttributeType COUNTER
public static final AttributeType STRING
public static AttributeType[] values()
for (AttributeType c : AttributeType.values()) System.out.println(c);
public static AttributeType 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 String getName()
public boolean isNumeric()
public String[] getAliases()
public static AttributeType parse(String typeAsString)
typeAsString
- typeCopyright © 2020. All rights reserved.