Enum ValueType

java.lang.Object
java.lang.Enum<ValueType>
io.opentelemetry.api.common.ValueType
All Implemented Interfaces:
Serializable, Comparable<ValueType>, java.lang.constant.Constable

public enum ValueType extends Enum<ValueType>
AnyValue type options, mirroring AnyValue#value options.
Since:
1.42.0
  • Enum Constant Details

    • STRING

      public static final ValueType STRING
    • BOOLEAN

      public static final ValueType BOOLEAN
    • LONG

      public static final ValueType LONG
    • DOUBLE

      public static final ValueType DOUBLE
    • ARRAY

      public static final ValueType ARRAY
    • KEY_VALUE_LIST

      public static final ValueType KEY_VALUE_LIST
    • BYTES

      public static final ValueType BYTES
  • Constructor Details

    • ValueType

      private ValueType()
  • Method Details

    • values

      public static ValueType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ValueType 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 name
      NullPointerException - if the argument is null