
com.google.cloud.tools.opensource.classpath.AutoValue_LinkageErrorCause Maven / Gradle / Ivy
package com.google.cloud.tools.opensource.classpath;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_LinkageErrorCause extends LinkageErrorCause {
private final SymbolNotResolvable.Reason reason;
private final String symbol;
AutoValue_LinkageErrorCause(
SymbolNotResolvable.Reason reason,
String symbol) {
if (reason == null) {
throw new NullPointerException("Null reason");
}
this.reason = reason;
if (symbol == null) {
throw new NullPointerException("Null symbol");
}
this.symbol = symbol;
}
@Override
SymbolNotResolvable.Reason getReason() {
return reason;
}
@Override
String getSymbol() {
return symbol;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof LinkageErrorCause) {
LinkageErrorCause that = (LinkageErrorCause) o;
return (this.reason.equals(that.getReason()))
&& (this.symbol.equals(that.getSymbol()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= reason.hashCode();
h$ *= 1000003;
h$ ^= symbol.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy