Enum ConfigBuilder.NamingConvention
- java.lang.Object
-
- java.lang.Enum<ConfigBuilder.NamingConvention>
-
- io.opentelemetry.sdk.common.export.ConfigBuilder.NamingConvention
-
- All Implemented Interfaces:
Serializable
,Comparable<ConfigBuilder.NamingConvention>
- Enclosing class:
- ConfigBuilder<T>
protected static enum ConfigBuilder.NamingConvention extends Enum<ConfigBuilder.NamingConvention>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
normalize(String key)
Map<String,String>
normalize(Map<String,String> map)
Normalize the key value of the map using the classnormalize(String)
method.static ConfigBuilder.NamingConvention
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConfigBuilder.NamingConvention[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOT
public static final ConfigBuilder.NamingConvention DOT
-
ENV_VAR
public static final ConfigBuilder.NamingConvention ENV_VAR
-
-
Method Detail
-
values
public static ConfigBuilder.NamingConvention[] 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 (ConfigBuilder.NamingConvention c : ConfigBuilder.NamingConvention.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigBuilder.NamingConvention 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
-
normalize
public Map<String,String> normalize(@Nonnull Map<String,String> map)
Normalize the key value of the map using the classnormalize(String)
method.- Parameters:
map
- The map to normalize- Returns:
- an unmodifiable normalized map
- See Also:
normalize(String)
-
-