edu.stanford.protege.webprotege.perspective.AutoValue_TerminalNodeId Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.perspective;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_TerminalNodeId extends TerminalNodeId {
private final String id;
AutoValue_TerminalNodeId(
String id) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
}
@JsonValue
@Override
public String getId() {
return id;
}
@Override
public String toString() {
return "TerminalNodeId{"
+ "id=" + id
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof TerminalNodeId) {
TerminalNodeId that = (TerminalNodeId) 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