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

org.graylog.plugins.views.search.searchtypes.pivot.buckets.AutoValue_AutoInterval Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
package org.graylog.plugins.views.search.searchtypes.pivot.buckets;

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

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

  private final String type;

  private final Double scaling;

  AutoValue_AutoInterval(
      String type,
      Double scaling) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (scaling == null) {
      throw new NullPointerException("Null scaling");
    }
    this.scaling = scaling;
  }

  @JsonProperty
  @Override
  public String type() {
    return type;
  }

  @JsonProperty
  @Override
  public Double scaling() {
    return scaling;
  }

  @Override
  public String toString() {
    return "AutoInterval{"
        + "type=" + type + ", "
        + "scaling=" + scaling
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AutoInterval) {
      AutoInterval that = (AutoInterval) o;
      return this.type.equals(that.type())
          && this.scaling.equals(that.scaling());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy