Package io.opentelemetry.api.common
Class ValueArray
java.lang.Object
io.opentelemetry.api.common.ValueArray
-
Field Details
-
value
-
-
Constructor Details
-
ValueArray
-
-
Method Details
-
create
-
create
-
getType
Description copied from interface:ValueReturns the type of thisValue. Useful for building switch statements. -
getValue
Description copied from interface:ValueReturns the value for thisValue.The return type varies by
Value.getType()as described below:ValueType.STRINGreturnsStringValueType.BOOLEANreturnsbooleanValueType.LONGreturnslongValueType.DOUBLEreturnsdoubleValueType.ARRAYreturnsListofValueValueType.KEY_VALUE_LISTreturnsListofKeyValueValueType.BYTESreturns read onlyByteBuffer. SeeByteBuffer.asReadOnlyBuffer().
-
asString
Description copied from interface:ValueReturn a string encoding of thisValue. This is intended to be a fallback serialized representation in case there is no suitable encoding that can utilizeValue.getType()/Value.getValue()to serialize specific types.WARNING: No guarantees are made about the encoding of this string response. It MAY change in a future minor release. If you need a reliable string encoding, write your own serializer.
-
toString
-
equals
-
hashCode
public int hashCode()
-