com.google.gerrit.entities.AutoValue_LabelId Maven / Gradle / Ivy
The newest version!
package com.google.gerrit.entities;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_LabelId extends LabelId {
private final String id;
AutoValue_LabelId(
String id) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
}
@Override
String id() {
return id;
}
@Override
public String toString() {
return "LabelId{"
+ "id=" + id
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof LabelId) {
LabelId that = (LabelId) o;
return this.id.equals(that.id());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
return h$;
}
}