com.google.gerrit.server.change.AutoValue_ChangeKindCacheImpl_Key Maven / Gradle / Ivy
package com.google.gerrit.server.change;
import javax.annotation.processing.Generated;
import org.eclipse.jgit.lib.ObjectId;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ChangeKindCacheImpl_Key extends ChangeKindCacheImpl.Key {
private final ObjectId prior;
private final ObjectId next;
private final String strategyName;
AutoValue_ChangeKindCacheImpl_Key(
ObjectId prior,
ObjectId next,
String strategyName) {
if (prior == null) {
throw new NullPointerException("Null prior");
}
this.prior = prior;
if (next == null) {
throw new NullPointerException("Null next");
}
this.next = next;
if (strategyName == null) {
throw new NullPointerException("Null strategyName");
}
this.strategyName = strategyName;
}
@Override
public ObjectId prior() {
return prior;
}
@Override
public ObjectId next() {
return next;
}
@Override
public String strategyName() {
return strategyName;
}
@Override
public String toString() {
return "Key{"
+ "prior=" + prior + ", "
+ "next=" + next + ", "
+ "strategyName=" + strategyName
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ChangeKindCacheImpl.Key) {
ChangeKindCacheImpl.Key that = (ChangeKindCacheImpl.Key) o;
return this.prior.equals(that.prior())
&& this.next.equals(that.next())
&& this.strategyName.equals(that.strategyName());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= prior.hashCode();
h$ *= 1000003;
h$ ^= next.hashCode();
h$ *= 1000003;
h$ ^= strategyName.hashCode();
return h$;
}
}