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