@Test public void testOverrideOptions() { assertThat(first.overrideOptions(new TraceOptions(3))).isEqualTo( new SpanContext(new TraceId(BigInteger.valueOf(10)), new SpanId(30), new TraceOptions(3))); }
public SpanContext overrideOptions(TraceOptions overrideOptions) { return new SpanContext(traceId, spanId, overrideOptions); }
SpanContext { public SpanContext overrideOptions(TraceOptions overrideOptions) { return new SpanContext(traceId, spanId, overrideOptions); } }
SpanContext { public SpanContext overrideOptions(TraceOptions overrideOptions) { return new SpanContext(traceId, spanId, overrideOptions); } SpanContext(TraceId traceId, SpanId spanId, TraceOptions traceOptions); }
SpanContext { public SpanContext overrideOptions(TraceOptions overrideOptions) { return new SpanContext(traceId, spanId, overrideOptions); } SpanContext(TraceId traceId, SpanId spanId, TraceOptions traceOptions); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); TraceId getTraceId(); SpanId getSpanId(); TraceOptions getTraceOptions(); SpanContext overrideOptions(TraceOptions overrideOptions); }
SpanContext { public SpanContext overrideOptions(TraceOptions overrideOptions) { return new SpanContext(traceId, spanId, overrideOptions); } SpanContext(TraceId traceId, SpanId spanId, TraceOptions traceOptions); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); TraceId getTraceId(); SpanId getSpanId(); TraceOptions getTraceOptions(); SpanContext overrideOptions(TraceOptions overrideOptions);  }