com.google.gerrit.server.notedb.AutoValue_ChangeNotesCache_Value Maven / Gradle / Ivy
package com.google.gerrit.server.notedb;
import com.google.gerrit.common.Nullable;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ChangeNotesCache_Value extends ChangeNotesCache.Value {
private final ChangeNotesState state;
private final RevisionNoteMap revisionNoteMap;
AutoValue_ChangeNotesCache_Value(
ChangeNotesState state,
@Nullable RevisionNoteMap revisionNoteMap) {
if (state == null) {
throw new NullPointerException("Null state");
}
this.state = state;
this.revisionNoteMap = revisionNoteMap;
}
@Override
ChangeNotesState state() {
return state;
}
@Nullable
@Override
RevisionNoteMap revisionNoteMap() {
return revisionNoteMap;
}
@Override
public String toString() {
return "Value{"
+ "state=" + state + ", "
+ "revisionNoteMap=" + revisionNoteMap
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ChangeNotesCache.Value) {
ChangeNotesCache.Value that = (ChangeNotesCache.Value) o;
return this.state.equals(that.state())
&& (this.revisionNoteMap == null ? that.revisionNoteMap() == null : this.revisionNoteMap.equals(that.revisionNoteMap()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= state.hashCode();
h$ *= 1000003;
h$ ^= (revisionNoteMap == null) ? 0 : revisionNoteMap.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy