edu.stanford.protege.webprotege.sharing.AutoValue_PersonId Maven / Gradle / Ivy
package edu.stanford.protege.webprotege.sharing;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PersonId extends PersonId {
private final String id;
AutoValue_PersonId(
String id) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
}
@JsonValue
@Nonnull
@Override
public String getId() {
return id;
}
@Override
public String toString() {
return "PersonId{"
+ "id=" + id
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PersonId) {
PersonId that = (PersonId) o;
return this.id.equals(that.getId());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
return h$;
}
}