Class ArrayBasedTraceState
java.lang.Object
io.opentelemetry.api.trace.ArrayBasedTraceState
- All Implemented Interfaces:
TraceState
- Direct Known Subclasses:
AutoValue_ArrayBasedTraceState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()Returns a read-only view of thisTraceStateas aMap.(package private) static ArrayBasedTraceStatevoidforEach(BiConsumer<String, String> consumer) Iterates over all the key-value entries contained in thisTraceState.Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.booleanisEmpty()Returns whether thisTraceStateis empty, containing no entries.intsize()Returns the number of entries in thisTraceState.Returns aBuilderbased on thisTraceState.
-
Constructor Details
-
ArrayBasedTraceState
ArrayBasedTraceState()
-
-
Method Details
-
get
Description copied from interface:TraceStateReturns the value to which the specified key is mapped, or null if this map contains no mapping for the key.- Specified by:
getin interfaceTraceState- Parameters:
key- with which the specified value is to be associated- Returns:
- the value to which the specified key is mapped, or null if this map contains no mapping for the key.
-
size
public int size()Description copied from interface:TraceStateReturns the number of entries in thisTraceState.- Specified by:
sizein interfaceTraceState
-
isEmpty
public boolean isEmpty()Description copied from interface:TraceStateReturns whether thisTraceStateis empty, containing no entries.- Specified by:
isEmptyin interfaceTraceState
-
forEach
Description copied from interface:TraceStateIterates over all the key-value entries contained in thisTraceState.- Specified by:
forEachin interfaceTraceState
-
asMap
Description copied from interface:TraceStateReturns a read-only view of thisTraceStateas aMap.- Specified by:
asMapin interfaceTraceState
-
getEntries
-
toBuilder
Description copied from interface:TraceStateReturns aBuilderbased on thisTraceState.- Specified by:
toBuilderin interfaceTraceState- Returns:
- a
Builderbased on thisTraceState.
-
create
-