hydra.ext.org.w3.owl.syntax.DisjointClasses 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 DisjointClasses implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/w3/owl/syntax.DisjointClasses");
public static final hydra.core.Name FIELD_NAME_ANNOTATIONS = new hydra.core.Name("annotations");
public static final hydra.core.Name FIELD_NAME_CLASSES = new hydra.core.Name("classes");
public final java.util.List annotations;
public final java.util.List classes;
public DisjointClasses (java.util.List annotations, java.util.List classes) {
java.util.Objects.requireNonNull((annotations));
java.util.Objects.requireNonNull((classes));
this.annotations = annotations;
this.classes = classes;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof DisjointClasses)) {
return false;
}
DisjointClasses o = (DisjointClasses) (other);
return annotations.equals(o.annotations) && classes.equals(o.classes);
}
@Override
public int hashCode() {
return 2 * annotations.hashCode() + 3 * classes.hashCode();
}
public DisjointClasses withAnnotations(java.util.List annotations) {
java.util.Objects.requireNonNull((annotations));
return new DisjointClasses(annotations, classes);
}
public DisjointClasses withClasses(java.util.List classes) {
java.util.Objects.requireNonNull((classes));
return new DisjointClasses(annotations, classes);
}
}