Package io.opentelemetry.api.common
Enum AttributeType
- java.lang.Object
-
- java.lang.Enum<AttributeType>
-
- io.opentelemetry.api.common.AttributeType
-
- All Implemented Interfaces:
Serializable
,Comparable<AttributeType>
public enum AttributeType extends Enum<AttributeType>
An enum that represents all the possible value types for anAttributeKey
and hence the types of values that are allowed forAttributes
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
BOOLEAN_ARRAY
DOUBLE
DOUBLE_ARRAY
LONG
LONG_ARRAY
STRING
STRING_ARRAY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Enum Constant Detail
-
STRING
public static final AttributeType STRING
-
BOOLEAN
public static final AttributeType BOOLEAN
-
LONG
public static final AttributeType LONG
-
DOUBLE
public static final AttributeType DOUBLE
-
STRING_ARRAY
public static final AttributeType STRING_ARRAY
-
BOOLEAN_ARRAY
public static final AttributeType BOOLEAN_ARRAY
-
LONG_ARRAY
public static final AttributeType LONG_ARRAY
-
DOUBLE_ARRAY
public static final AttributeType DOUBLE_ARRAY
-
-
Method Detail
-
values
public static AttributeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AttributeType c : AttributeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-