edu.stanford.protege.webprotege.hierarchy.AutoValue_HierarchyId Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.hierarchy;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_HierarchyId extends HierarchyId {
private final String id;
AutoValue_HierarchyId(
String id) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
}
@Nonnull
@Override
public String getId() {
return id;
}
@Override
public String toString() {
return "HierarchyId{"
+ "id=" + id
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof HierarchyId) {
HierarchyId that = (HierarchyId) o;
return this.id.equals(that.getId());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy