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

org.graylog2.rest.resources.search.responses.AutoValue_SearchError Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.rest.resources.search.responses;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import javax.annotation.Generated;

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

  private final String message;

  private final Collection details;

  AutoValue_SearchError(
      String message,
      Collection details) {
    if (message == null) {
      throw new NullPointerException("Null message");
    }
    this.message = message;
    if (details == null) {
      throw new NullPointerException("Null details");
    }
    this.details = details;
  }

  @JsonProperty
  @Override
  public String message() {
    return message;
  }

  @JsonProperty
  @Override
  public Collection details() {
    return details;
  }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy