com.google.gerrit.entities.$AutoValue_Change_Key Maven / Gradle / Ivy
package com.google.gerrit.entities;
import com.google.gson.annotations.SerializedName;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_Change_Key extends Change.Key {
private final String key;
$AutoValue_Change_Key(
String key) {
if (key == null) {
throw new NullPointerException("Null key");
}
this.key = key;
}
@SerializedName("id")
@Override
String key() {
return key;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Change.Key) {
Change.Key that = (Change.Key) o;
return this.key.equals(that.key());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= key.hashCode();
return h$;
}
}