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

org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.search.AutoValue_SeriesSpec Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Optional;
import javax.annotation.Generated;
import javax.annotation.Nullable;

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

  private final String type;

  private final String id;

  private final Optional field;

  AutoValue_SeriesSpec(
      String type,
      @Nullable String id,
      Optional field) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    this.id = id;
    if (field == null) {
      throw new NullPointerException("Null field");
    }
    this.field = field;
  }

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

  @JsonProperty
  @Nullable
  @Override
  public String id() {
    return id;
  }

  @JsonProperty
  @Override
  public Optional field() {
    return field;
  }

  @Override
  public String toString() {
    return "SeriesSpec{"
        + "type=" + type + ", "
        + "id=" + id + ", "
        + "field=" + field
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SeriesSpec) {
      SeriesSpec that = (SeriesSpec) o;
      return this.type.equals(that.type())
          && (this.id == null ? that.id() == null : this.id.equals(that.id()))
          && this.field.equals(that.field());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= type.hashCode();
    h$ *= 1000003;
    h$ ^= (id == null) ? 0 : id.hashCode();
    h$ *= 1000003;
    h$ ^= field.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy