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

org.graylog2.rest.models.system.inputs.extractors.responses.AutoValue_ExtractorMetrics Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version

package org.graylog2.rest.models.system.inputs.extractors.responses;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
import org.graylog2.rest.models.metrics.responses.TimerRateMetricsResponse;

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

  private final TimerRateMetricsResponse total;
  private final TimerRateMetricsResponse converters;

  AutoValue_ExtractorMetrics(
      TimerRateMetricsResponse total,
      TimerRateMetricsResponse converters) {
    if (total == null) {
      throw new NullPointerException("Null total");
    }
    this.total = total;
    if (converters == null) {
      throw new NullPointerException("Null converters");
    }
    this.converters = converters;
  }

  @JsonProperty
  @Override
  public TimerRateMetricsResponse total() {
    return total;
  }

  @JsonProperty
  @Override
  public TimerRateMetricsResponse converters() {
    return converters;
  }

  @Override
  public String toString() {
    return "ExtractorMetrics{"
        + "total=" + total + ", "
        + "converters=" + converters
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ExtractorMetrics) {
      ExtractorMetrics that = (ExtractorMetrics) o;
      return (this.total.equals(that.total()))
           && (this.converters.equals(that.converters()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.total.hashCode();
    h *= 1000003;
    h ^= this.converters.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy