AttributeEntry


@DelicateTracingApi
public final class AttributeEntry


TraceEvents can contain trace attributes that apply to the entire trace. This is how that metadata is sent to the AbstractTraceSink. These objects are pooled, and we expose bare-fields because this is performance sensitive code.

End users of tracing will never use this class directly. They will only interact with it using TraceEventScope.

An androidx.tracing.AttributeEntry should only have one of longValue, or stringValue non-null when set. There can never be more than one value set.

Summary

Public methods

boolean
equals(Object other)
final Long
final String
final String
int
final void
final void
final void
setName(String value)
final void
@NonNull String

Public methods

equals

public boolean equals(Object other)

getLongValue

public final Long getLongValue()

getName

public final String getName()

getStringValue

public final String getStringValue()

hashCode

public int hashCode()

reset

Added in 2.0.0-alpha05
public final void reset()

setLongValue

public final void setLongValue(Long value)

setName

public final void setName(String value)

setStringValue

public final void setStringValue(String value)

toString

public @NonNull String toString()