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

org.graylog.plugins.views.search.elasticsearch.AutoValue_QueryParam Maven / Gradle / Ivy

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

import java.util.List;
import javax.annotation.processing.Generated;
import org.graylog.plugins.views.search.validation.SubstringMultilinePosition;

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

  private final String name;

  private final List positions;

  AutoValue_QueryParam(
      String name,
      List positions) {
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    if (positions == null) {
      throw new NullPointerException("Null positions");
    }
    this.positions = positions;
  }

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

  @Override
  public List positions() {
    return positions;
  }

  @Override
  public String toString() {
    return "QueryParam{"
        + "name=" + name + ", "
        + "positions=" + positions
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof QueryParam) {
      QueryParam that = (QueryParam) o;
      return this.name.equals(that.name())
          && this.positions.equals(that.positions());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy