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

com.google.apphosting.utils.config.AutoValue_AppEngineWebXml_ErrorHandler Maven / Gradle / Ivy

package com.google.apphosting.utils.config;

import javax.annotation.Generated;
import javax.annotation.Nullable;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AppEngineWebXml_ErrorHandler extends AppEngineWebXml.ErrorHandler {

  private final String file;

  private final String errorCode;

  AutoValue_AppEngineWebXml_ErrorHandler(
      String file,
      @Nullable String errorCode) {
    if (file == null) {
      throw new NullPointerException("Null file");
    }
    this.file = file;
    this.errorCode = errorCode;
  }

  @Override
  public String getFile() {
    return file;
  }

  @Nullable
  @Override
  public String getErrorCode() {
    return errorCode;
  }

  @Override
  public String toString() {
    return "ErrorHandler{"
        + "file=" + file + ", "
        + "errorCode=" + errorCode
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AppEngineWebXml.ErrorHandler) {
      AppEngineWebXml.ErrorHandler that = (AppEngineWebXml.ErrorHandler) o;
      return this.file.equals(that.getFile())
          && (this.errorCode == null ? that.getErrorCode() == null : this.errorCode.equals(that.getErrorCode()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= file.hashCode();
    h$ *= 1000003;
    h$ ^= (errorCode == null) ? 0 : errorCode.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy