-
-
Method Summary
Modifier and Type Method Description StringgetOriginal()Gets the original B3 TraceId. static B3TraceIdfromHex(String s)Create a B3TraceId from a B3 TraceId string. StringtoHexString()Returns the lower-case zero-padded 32 hexadecimal characters String representation ofthe DDTraceId. StringtoHexStringPadded(int size)Returns the lower-case zero-padded hexadecimal String representation ofthe DDTraceId. longtoLong()Returns the low-order 64 bits of the DDTraceId as an unsigned {@code long}.longtoHighOrderLong()Returns the high-order 64 bits of 128-bit DDTraceId as un unsigned {@code long}.StringtoString()Returns a 64-bit only decimal String representation of the DDTraceId. booleanequals(Object o)inthashCode()-
-
Method Detail
-
getOriginal
String getOriginal()
Gets the original B3 TraceId.
-
fromHex
static B3TraceId fromHex(String s)
Create a B3TraceId from a B3 TraceId string.
- Parameters:
s- The B3 TraceId string.
-
toHexString
String toHexString()
-
toHexStringPadded
String toHexStringPadded(int size)
Returns the lower-case zero-padded hexadecimal String representation ofthe DDTraceId. The size will be rounded up to
16or32characters. This hexadecimal Stringwill not be cached.- Parameters:
size- The size in characters of the zero-padded String (rounded up to16or32).
-
toLong
long toLong()
-
toHighOrderLong
long toHighOrderLong()
-
hashCode
int hashCode()
-
-
-
-