@Test public void testHashCode() { assertThat(first.hashCode()).isEqualTo(first.hashCode()); assertThat(first.hashCode()).isNotEqualTo(second.hashCode()); }
@Override public int hashCode() { return Objects.hash(traceId, spanId, traceOptions); }
SpanContext { @Override public int hashCode() { return Objects.hash(traceId, spanId, traceOptions); } }
SpanContext { @Override public int hashCode() { return Objects.hash(traceId, spanId, traceOptions); } SpanContext(TraceId traceId, SpanId spanId, TraceOptions traceOptions); }
SpanContext { @Override public int hashCode() { return Objects.hash(traceId, spanId, traceOptions); } 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 { @Override public int hashCode() { return Objects.hash(traceId, spanId, traceOptions); } 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);  }