com.google.gerrit.entities.AutoValue_ChangeMessage_Key Maven / Gradle / Ivy
package com.google.gerrit.entities;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ChangeMessage_Key extends ChangeMessage.Key {
private final Change.Id changeId;
private final String uuid;
AutoValue_ChangeMessage_Key(
Change.Id changeId,
String uuid) {
if (changeId == null) {
throw new NullPointerException("Null changeId");
}
this.changeId = changeId;
if (uuid == null) {
throw new NullPointerException("Null uuid");
}
this.uuid = uuid;
}
@Override
public Change.Id changeId() {
return changeId;
}
@Override
public String uuid() {
return uuid;
}
@Override
public String toString() {
return "Key{"
+ "changeId=" + changeId + ", "
+ "uuid=" + uuid
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ChangeMessage.Key) {
ChangeMessage.Key that = (ChangeMessage.Key) o;
return this.changeId.equals(that.changeId())
&& this.uuid.equals(that.uuid());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= changeId.hashCode();
h$ *= 1000003;
h$ ^= uuid.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy