com.google.appengine.tools.development.AutoValue_EnvironmentVariableChecker_Mismatch Maven / Gradle / Ivy
Go to download
SDK for dev_appserver (local development) with some of the dependencies shaded (repackaged)
package com.google.appengine.tools.development;
import java.io.File;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_EnvironmentVariableChecker_Mismatch extends EnvironmentVariableChecker.Mismatch {
private final String environmentVariableName;
@Nullable
private final String environmentVariableValue;
private final String appEngineWebXmlValue;
private final File appEngineWebXmlFile;
AutoValue_EnvironmentVariableChecker_Mismatch(
String environmentVariableName,
@Nullable String environmentVariableValue,
String appEngineWebXmlValue,
File appEngineWebXmlFile) {
if (environmentVariableName == null) {
throw new NullPointerException("Null environmentVariableName");
}
this.environmentVariableName = environmentVariableName;
this.environmentVariableValue = environmentVariableValue;
if (appEngineWebXmlValue == null) {
throw new NullPointerException("Null appEngineWebXmlValue");
}
this.appEngineWebXmlValue = appEngineWebXmlValue;
if (appEngineWebXmlFile == null) {
throw new NullPointerException("Null appEngineWebXmlFile");
}
this.appEngineWebXmlFile = appEngineWebXmlFile;
}
@Override
String getEnvironmentVariableName() {
return environmentVariableName;
}
@Nullable
@Override
String getEnvironmentVariableValue() {
return environmentVariableValue;
}
@Override
String getAppEngineWebXmlValue() {
return appEngineWebXmlValue;
}
@Override
File getAppEngineWebXmlFile() {
return appEngineWebXmlFile;
}
@Override
public String toString() {
return "Mismatch{"
+ "environmentVariableName=" + environmentVariableName + ", "
+ "environmentVariableValue=" + environmentVariableValue + ", "
+ "appEngineWebXmlValue=" + appEngineWebXmlValue + ", "
+ "appEngineWebXmlFile=" + appEngineWebXmlFile
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof EnvironmentVariableChecker.Mismatch) {
EnvironmentVariableChecker.Mismatch that = (EnvironmentVariableChecker.Mismatch) o;
return this.environmentVariableName.equals(that.getEnvironmentVariableName())
&& (this.environmentVariableValue == null ? that.getEnvironmentVariableValue() == null : this.environmentVariableValue.equals(that.getEnvironmentVariableValue()))
&& this.appEngineWebXmlValue.equals(that.getAppEngineWebXmlValue())
&& this.appEngineWebXmlFile.equals(that.getAppEngineWebXmlFile());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= environmentVariableName.hashCode();
h$ *= 1000003;
h$ ^= (environmentVariableValue == null) ? 0 : environmentVariableValue.hashCode();
h$ *= 1000003;
h$ ^= appEngineWebXmlValue.hashCode();
h$ *= 1000003;
h$ ^= appEngineWebXmlFile.hashCode();
return h$;
}
}