
edu.stanford.protege.webprotege.entity.AutoValue_OWLNamedIndividualData Maven / Gradle / Ivy
package edu.stanford.protege.webprotege.entity;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.common.collect.ImmutableList;
import edu.stanford.protege.webprotege.common.ShortForm;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
import org.semanticweb.owlapi.model.OWLNamedIndividual;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_OWLNamedIndividualData extends OWLNamedIndividualData {
private final ImmutableList shortForms;
private final boolean deprecated;
private final OWLNamedIndividual object;
AutoValue_OWLNamedIndividualData(
ImmutableList shortForms,
boolean deprecated,
OWLNamedIndividual object) {
if (shortForms == null) {
throw new NullPointerException("Null shortForms");
}
this.shortForms = shortForms;
this.deprecated = deprecated;
if (object == null) {
throw new NullPointerException("Null object");
}
this.object = object;
}
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Override
public ImmutableList getShortForms() {
return shortForms;
}
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
@Override
public boolean isDeprecated() {
return deprecated;
}
@Nonnull
@Override
public OWLNamedIndividual getObject() {
return object;
}
@Override
public String toString() {
return "OWLNamedIndividualData{"
+ "shortForms=" + shortForms + ", "
+ "deprecated=" + deprecated + ", "
+ "object=" + object
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof OWLNamedIndividualData) {
OWLNamedIndividualData that = (OWLNamedIndividualData) o;
return this.shortForms.equals(that.getShortForms())
&& this.deprecated == that.isDeprecated()
&& this.object.equals(that.getObject());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= shortForms.hashCode();
h$ *= 1000003;
h$ ^= deprecated ? 1231 : 1237;
h$ *= 1000003;
h$ ^= object.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy