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

org.graylog2.storage.versionprobe.AutoValue_ErrorResponse Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.storage.versionprobe;

import java.util.Optional;
import javax.annotation.processing.Generated;

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

  private final Optional error;

  AutoValue_ErrorResponse(
      Optional error) {
    if (error == null) {
      throw new NullPointerException("Null error");
    }
    this.error = error;
  }

  @Override
  public Optional error() {
    return error;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ErrorResponse) {
      ErrorResponse that = (ErrorResponse) o;
      return this.error.equals(that.error());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy