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

org.graylog.events.search.AutoValue_EventsSearchResult_Context 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 com.google.common.collect.ImmutableMap;
import javax.annotation.processing.Generated;

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

  private final ImmutableMap eventDefinitions;

  private final ImmutableMap streams;

  AutoValue_EventsSearchResult_Context(
      ImmutableMap eventDefinitions,
      ImmutableMap streams) {
    if (eventDefinitions == null) {
      throw new NullPointerException("Null eventDefinitions");
    }
    this.eventDefinitions = eventDefinitions;
    if (streams == null) {
      throw new NullPointerException("Null streams");
    }
    this.streams = streams;
  }

  @JsonProperty("event_definitions")
  @Override
  public ImmutableMap eventDefinitions() {
    return eventDefinitions;
  }

  @JsonProperty("streams")
  @Override
  public ImmutableMap streams() {
    return streams;
  }

  @Override
  public String toString() {
    return "Context{"
        + "eventDefinitions=" + eventDefinitions + ", "
        + "streams=" + streams
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EventsSearchResult.Context) {
      EventsSearchResult.Context that = (EventsSearchResult.Context) o;
      return this.eventDefinitions.equals(that.eventDefinitions())
          && this.streams.equals(that.streams());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy