com.google.gerrit.server.git.AutoValue_ReceiveCommitsAdvertiseRefsHook_Result Maven / Gradle / Ivy
package com.google.gerrit.server.git;
import java.util.Map;
import java.util.Set;
import javax.annotation.Generated;
import org.eclipse.jgit.lib.ObjectId;
import org.eclipse.jgit.lib.Ref;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ReceiveCommitsAdvertiseRefsHook_Result extends ReceiveCommitsAdvertiseRefsHook.Result {
private final Map allRefs;
private final Set additionalHaves;
AutoValue_ReceiveCommitsAdvertiseRefsHook_Result(
Map allRefs,
Set additionalHaves) {
if (allRefs == null) {
throw new NullPointerException("Null allRefs");
}
this.allRefs = allRefs;
if (additionalHaves == null) {
throw new NullPointerException("Null additionalHaves");
}
this.additionalHaves = additionalHaves;
}
@Override
public Map allRefs() {
return allRefs;
}
@Override
public Set additionalHaves() {
return additionalHaves;
}
@Override
public String toString() {
return "Result{"
+ "allRefs=" + allRefs + ", "
+ "additionalHaves=" + additionalHaves
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ReceiveCommitsAdvertiseRefsHook.Result) {
ReceiveCommitsAdvertiseRefsHook.Result that = (ReceiveCommitsAdvertiseRefsHook.Result) o;
return (this.allRefs.equals(that.allRefs()))
&& (this.additionalHaves.equals(that.additionalHaves()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= allRefs.hashCode();
h$ *= 1000003;
h$ ^= additionalHaves.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy