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

org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.view.AutoValue_TimeHistogramConfig Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.view;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

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

  private final AutoInterval interval;

  AutoValue_TimeHistogramConfig(
      AutoInterval interval) {
    if (interval == null) {
      throw new NullPointerException("Null interval");
    }
    this.interval = interval;
  }

  @JsonProperty("interval")
  @Override
  public AutoInterval interval() {
    return interval;
  }

  @Override
  public String toString() {
    return "TimeHistogramConfig{"
        + "interval=" + interval
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof TimeHistogramConfig) {
      TimeHistogramConfig that = (TimeHistogramConfig) o;
      return this.interval.equals(that.interval());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= interval.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy