edu.stanford.protege.webprotege.perspective.AutoValue_PerspectiveId Maven / Gradle / Ivy
package edu.stanford.protege.webprotege.perspective;
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_PerspectiveId extends PerspectiveId {
private final String id;
AutoValue_PerspectiveId(
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 "PerspectiveId{"
+ "id=" + id
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PerspectiveId) {
PerspectiveId that = (PerspectiveId) o;
return this.id.equals(that.getId());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
return h$;
}
}