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

org.graylog.events.search.AutoValue_EventsSearchResult_ContextEntity Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog.events.search;

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

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_EventsSearchResult_ContextEntity extends EventsSearchResult.ContextEntity {

  private final String id;

  private final String title;

  private final String description;

  AutoValue_EventsSearchResult_ContextEntity(
      String id,
      String title,
      String description) {
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
    if (description == null) {
      throw new NullPointerException("Null description");
    }
    this.description = description;
  }

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

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

  @JsonProperty("description")
  @Override
  public String description() {
    return description;
  }

  @Override
  public String toString() {
    return "ContextEntity{"
        + "id=" + id + ", "
        + "title=" + title + ", "
        + "description=" + description
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EventsSearchResult.ContextEntity) {
      EventsSearchResult.ContextEntity that = (EventsSearchResult.ContextEntity) o;
      return this.id.equals(that.id())
          && this.title.equals(that.title())
          && this.description.equals(that.description());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy