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