hydra.ext.org.w3.owl.syntax.SubAnnotationPropertyOf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-ext Show documentation
Show all versions of hydra-ext Show documentation
Hydra language extensions in Java; models, coders, and utilities
The newest version!
// Note: this is an automatically generated file. Do not edit.
package hydra.ext.org.w3.owl.syntax;
import java.io.Serializable;
public class SubAnnotationPropertyOf implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/w3/owl/syntax.SubAnnotationPropertyOf");
public static final hydra.core.Name FIELD_NAME_ANNOTATIONS = new hydra.core.Name("annotations");
public static final hydra.core.Name FIELD_NAME_SUB_PROPERTY = new hydra.core.Name("subProperty");
public static final hydra.core.Name FIELD_NAME_SUPER_PROPERTY = new hydra.core.Name("superProperty");
public final java.util.List annotations;
public final hydra.ext.org.w3.owl.syntax.AnnotationProperty subProperty;
public final hydra.ext.org.w3.owl.syntax.AnnotationProperty superProperty;
public SubAnnotationPropertyOf (java.util.List annotations, hydra.ext.org.w3.owl.syntax.AnnotationProperty subProperty, hydra.ext.org.w3.owl.syntax.AnnotationProperty superProperty) {
java.util.Objects.requireNonNull((annotations));
java.util.Objects.requireNonNull((subProperty));
java.util.Objects.requireNonNull((superProperty));
this.annotations = annotations;
this.subProperty = subProperty;
this.superProperty = superProperty;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof SubAnnotationPropertyOf)) {
return false;
}
SubAnnotationPropertyOf o = (SubAnnotationPropertyOf) (other);
return annotations.equals(o.annotations) && subProperty.equals(o.subProperty) && superProperty.equals(o.superProperty);
}
@Override
public int hashCode() {
return 2 * annotations.hashCode() + 3 * subProperty.hashCode() + 5 * superProperty.hashCode();
}
public SubAnnotationPropertyOf withAnnotations(java.util.List annotations) {
java.util.Objects.requireNonNull((annotations));
return new SubAnnotationPropertyOf(annotations, subProperty, superProperty);
}
public SubAnnotationPropertyOf withSubProperty(hydra.ext.org.w3.owl.syntax.AnnotationProperty subProperty) {
java.util.Objects.requireNonNull((subProperty));
return new SubAnnotationPropertyOf(annotations, subProperty, superProperty);
}
public SubAnnotationPropertyOf withSuperProperty(hydra.ext.org.w3.owl.syntax.AnnotationProperty superProperty) {
java.util.Objects.requireNonNull((superProperty));
return new SubAnnotationPropertyOf(annotations, subProperty, superProperty);
}
}