com.google.gerrit.server.index.change.AutoValue_StalenessChecker_RefState Maven / Gradle / Ivy
package com.google.gerrit.server.index.change;
import javax.annotation.Generated;
import org.eclipse.jgit.lib.ObjectId;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_StalenessChecker_RefState extends StalenessChecker.RefState {
private final String ref;
private final ObjectId id;
AutoValue_StalenessChecker_RefState(
String ref,
ObjectId id) {
if (ref == null) {
throw new NullPointerException("Null ref");
}
this.ref = ref;
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
}
@Override
String ref() {
return ref;
}
@Override
ObjectId id() {
return id;
}
@Override
public String toString() {
return "RefState{"
+ "ref=" + ref + ", "
+ "id=" + id
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof StalenessChecker.RefState) {
StalenessChecker.RefState that = (StalenessChecker.RefState) o;
return (this.ref.equals(that.ref()))
&& (this.id.equals(that.id()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.ref.hashCode();
h *= 1000003;
h ^= this.id.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy