com.google.gerrit.server.query.change.AutoValue_ChangeData_ReviewedByEvent Maven / Gradle / Ivy
The newest version!
package com.google.gerrit.server.query.change;
import com.google.gerrit.entities.Account;
import java.time.Instant;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ChangeData_ReviewedByEvent extends ChangeData.ReviewedByEvent {
private final Account.Id author;
private final Instant ts;
AutoValue_ChangeData_ReviewedByEvent(
Account.Id author,
Instant ts) {
if (author == null) {
throw new NullPointerException("Null author");
}
this.author = author;
if (ts == null) {
throw new NullPointerException("Null ts");
}
this.ts = ts;
}
@Override
public Account.Id author() {
return author;
}
@Override
public Instant ts() {
return ts;
}
@Override
public String toString() {
return "ReviewedByEvent{"
+ "author=" + author + ", "
+ "ts=" + ts
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ChangeData.ReviewedByEvent) {
ChangeData.ReviewedByEvent that = (ChangeData.ReviewedByEvent) o;
return this.author.equals(that.author())
&& this.ts.equals(that.ts());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= author.hashCode();
h$ *= 1000003;
h$ ^= ts.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy