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

org.graylog2.indexer.messages.AutoValue_IndexingRequest Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog2.indexer.messages;

import javax.annotation.processing.Generated;
import org.graylog2.indexer.IndexSet;

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

  private final IndexSet indexSet;

  private final Indexable message;

  AutoValue_IndexingRequest(
      IndexSet indexSet,
      Indexable message) {
    if (indexSet == null) {
      throw new NullPointerException("Null indexSet");
    }
    this.indexSet = indexSet;
    if (message == null) {
      throw new NullPointerException("Null message");
    }
    this.message = message;
  }

  @Override
  public IndexSet indexSet() {
    return indexSet;
  }

  @Override
  public Indexable message() {
    return message;
  }

  @Override
  public String toString() {
    return "IndexingRequest{"
        + "indexSet=" + indexSet + ", "
        + "message=" + message
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof IndexingRequest) {
      IndexingRequest that = (IndexingRequest) o;
      return this.indexSet.equals(that.indexSet())
          && this.message.equals(that.message());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy