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