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

org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.savedsearch.AutoValue_SavedSearch Maven / Gradle / Ivy

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

import javax.annotation.Generated;
import org.joda.time.DateTime;

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

  private final String id;

  private final String title;

  private final Query query;

  private final DateTime createdAt;

  private final String creatorUserId;

  AutoValue_SavedSearch(
      String id,
      String title,
      Query query,
      DateTime createdAt,
      String creatorUserId) {
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
    if (query == null) {
      throw new NullPointerException("Null query");
    }
    this.query = query;
    if (createdAt == null) {
      throw new NullPointerException("Null createdAt");
    }
    this.createdAt = createdAt;
    if (creatorUserId == null) {
      throw new NullPointerException("Null creatorUserId");
    }
    this.creatorUserId = creatorUserId;
  }

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

  @Override
  public String title() {
    return title;
  }

  @Override
  public Query query() {
    return query;
  }

  @Override
  public DateTime createdAt() {
    return createdAt;
  }

  @Override
  public String creatorUserId() {
    return creatorUserId;
  }

  @Override
  public String toString() {
    return "SavedSearch{"
        + "id=" + id + ", "
        + "title=" + title + ", "
        + "query=" + query + ", "
        + "createdAt=" + createdAt + ", "
        + "creatorUserId=" + creatorUserId
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SavedSearch) {
      SavedSearch that = (SavedSearch) o;
      return this.id.equals(that.id())
          && this.title.equals(that.title())
          && this.query.equals(that.query())
          && this.createdAt.equals(that.createdAt())
          && this.creatorUserId.equals(that.creatorUserId());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= id.hashCode();
    h$ *= 1000003;
    h$ ^= title.hashCode();
    h$ *= 1000003;
    h$ ^= query.hashCode();
    h$ *= 1000003;
    h$ ^= createdAt.hashCode();
    h$ *= 1000003;
    h$ ^= creatorUserId.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy