edu.stanford.protege.webprotege.frame.AutoValue_RelationshipTranslationOptions Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.frame;
import com.fasterxml.jackson.annotation.JsonProperty;
import edu.stanford.protege.webprotege.criteria.RelationshipCriteria;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_RelationshipTranslationOptions extends RelationshipTranslationOptions {
private final RelationshipCriteria outgoingRelationshipCriteriaInternal;
private final RelationshipCriteria incomingRelationshipCriteriaInternal;
private final RelationshipTranslationOptions.RelationshipMinification relationshipMinification;
AutoValue_RelationshipTranslationOptions(
@Nullable RelationshipCriteria outgoingRelationshipCriteriaInternal,
@Nullable RelationshipCriteria incomingRelationshipCriteriaInternal,
RelationshipTranslationOptions.RelationshipMinification relationshipMinification) {
this.outgoingRelationshipCriteriaInternal = outgoingRelationshipCriteriaInternal;
this.incomingRelationshipCriteriaInternal = incomingRelationshipCriteriaInternal;
if (relationshipMinification == null) {
throw new NullPointerException("Null relationshipMinification");
}
this.relationshipMinification = relationshipMinification;
}
@JsonProperty("outgoingRelationshipCriteria")
@Nullable
@Override
protected RelationshipCriteria getOutgoingRelationshipCriteriaInternal() {
return outgoingRelationshipCriteriaInternal;
}
@JsonProperty("incomingRelationshipCriteria")
@Nullable
@Override
protected RelationshipCriteria getIncomingRelationshipCriteriaInternal() {
return incomingRelationshipCriteriaInternal;
}
@Nonnull
@Override
public RelationshipTranslationOptions.RelationshipMinification getRelationshipMinification() {
return relationshipMinification;
}
@Override
public String toString() {
return "RelationshipTranslationOptions{"
+ "outgoingRelationshipCriteriaInternal=" + outgoingRelationshipCriteriaInternal + ", "
+ "incomingRelationshipCriteriaInternal=" + incomingRelationshipCriteriaInternal + ", "
+ "relationshipMinification=" + relationshipMinification
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof RelationshipTranslationOptions) {
RelationshipTranslationOptions that = (RelationshipTranslationOptions) o;
return (this.outgoingRelationshipCriteriaInternal == null ? that.getOutgoingRelationshipCriteriaInternal() == null : this.outgoingRelationshipCriteriaInternal.equals(that.getOutgoingRelationshipCriteriaInternal()))
&& (this.incomingRelationshipCriteriaInternal == null ? that.getIncomingRelationshipCriteriaInternal() == null : this.incomingRelationshipCriteriaInternal.equals(that.getIncomingRelationshipCriteriaInternal()))
&& this.relationshipMinification.equals(that.getRelationshipMinification());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (outgoingRelationshipCriteriaInternal == null) ? 0 : outgoingRelationshipCriteriaInternal.hashCode();
h$ *= 1000003;
h$ ^= (incomingRelationshipCriteriaInternal == null) ? 0 : incomingRelationshipCriteriaInternal.hashCode();
h$ *= 1000003;
h$ ^= relationshipMinification.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy