Top Constructors Methods
io.opentelemetry.api.trace

pack-priv abstract Class ArrayBasedTraceState

extends Object
implements TraceState
Class Inheritance
All Implemented Interfaces
io.opentelemetry.api.trace.TraceState
Annotations
@Immutable
@AutoValue
Imports
com.google.auto.value.AutoValue, io.opentelemetry.api.internal.ReadOnlyArrayMap, java.util.List, .Map, java.util.function.BiConsumer, javax.annotation.Nullable, javax.annotation.concurrent.Immutable

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Map<String, String>
asMap()

Implements io.opentelemetry.api.trace.TraceState.asMap.

Returns a read-only view of this TraceState as a Map.

pack-priv static ArrayBasedTraceState
create(List<String> entries)

public void
forEach(BiConsumer<String, String> consumer)

Implements io.opentelemetry.api.trace.TraceState.forEach.

Iterates over all the key-value entries contained in this TraceState.

public String
get(String
with which the specified value is to be associated
key
)

Implements io.opentelemetry.api.trace.TraceState.get.

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

pack-priv abstract List<String>
public boolean
isEmpty()

Implements io.opentelemetry.api.trace.TraceState.isEmpty.

Returns whether this TraceState is empty, containing no entries.

public int
size()

Implements io.opentelemetry.api.trace.TraceState.size.

Returns the number of entries in this TraceState.

public TraceStateBuilder
toBuilder()

Implements io.opentelemetry.api.trace.TraceState.toBuilder.

Returns a Builder based on this TraceState.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ArrayBasedTraceStateback to summary
pack-priv ArrayBasedTraceState()

Method Detail

asMapback to summary
public Map<String, String> asMap()

Implements io.opentelemetry.api.trace.TraceState.asMap.

Doc from io.opentelemetry.api.trace.TraceState.asMap.

Returns a read-only view of this TraceState as a Map.

Annotations
@Override
@SuppressWarnings:unchecked, rawtypes
createback to summary
pack-priv static ArrayBasedTraceState create(List<String> entries)
forEachback to summary
public void forEach(BiConsumer<String, String> consumer)

Implements io.opentelemetry.api.trace.TraceState.forEach.

Doc from io.opentelemetry.api.trace.TraceState.forEach.

Iterates over all the key-value entries contained in this TraceState.

Annotations
@Override
getback to summary
public String get(String key)

Implements io.opentelemetry.api.trace.TraceState.get.

Doc from io.opentelemetry.api.trace.TraceState.get.

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

Parameters
key:String

with which the specified value is to be associated

Returns:String

the value to which the specified key is mapped, or null if this map contains no mapping for the key.

Annotations
@Override
@Nullable
getEntriesback to summary
pack-priv abstract List<String> getEntries()
isEmptyback to summary
public boolean isEmpty()

Implements io.opentelemetry.api.trace.TraceState.isEmpty.

Doc from io.opentelemetry.api.trace.TraceState.isEmpty.

Returns whether this TraceState is empty, containing no entries.

Annotations
@Override
sizeback to summary
public int size()

Implements io.opentelemetry.api.trace.TraceState.size.

Doc from io.opentelemetry.api.trace.TraceState.size.

Returns the number of entries in this TraceState.

Annotations
@Override
toBuilderback to summary
public TraceStateBuilder toBuilder()

Implements io.opentelemetry.api.trace.TraceState.toBuilder.

Doc from io.opentelemetry.api.trace.TraceState.toBuilder.

Returns a Builder based on this TraceState.

Returns:TraceStateBuilder

a Builder based on this TraceState.

Annotations
@Override