All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.kristofa.brave.AutoValue_ServerSpan Maven / Gradle / Ivy

There is a newer version: 4.13.6
Show newest version

package com.github.kristofa.brave;

import com.twitter.zipkin.gen.Span;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ServerSpan extends ServerSpan {

  private final Span span;
  private final Boolean sample;

  AutoValue_ServerSpan(
      @com.github.kristofa.brave.internal.Nullable Span span,
      @com.github.kristofa.brave.internal.Nullable Boolean sample) {
    this.span = span;
    this.sample = sample;
  }

  @com.github.kristofa.brave.internal.Nullable
  @Override
  public Span getSpan() {
    return span;
  }

  @com.github.kristofa.brave.internal.Nullable
  @Override
  public Boolean getSample() {
    return sample;
  }

  @Override
  public String toString() {
    return "ServerSpan{"
        + "span=" + span + ", "
        + "sample=" + sample
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ServerSpan) {
      ServerSpan that = (ServerSpan) o;
      return ((this.span == null) ? (that.getSpan() == null) : this.span.equals(that.getSpan()))
           && ((this.sample == null) ? (that.getSample() == null) : this.sample.equals(that.getSample()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= (span == null) ? 0 : span.hashCode();
    h *= 1000003;
    h ^= (sample == null) ? 0 : sample.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy