hydra.ext.org.w3.owl.syntax.ObjectMaxCardinality 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;
/**
* See https://www.w3.org/TR/owl2-syntax/#Maximum_Cardinality
*/
public class ObjectMaxCardinality implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/w3/owl/syntax.ObjectMaxCardinality");
public static final hydra.core.Name FIELD_NAME_BOUND = new hydra.core.Name("bound");
public static final hydra.core.Name FIELD_NAME_PROPERTY = new hydra.core.Name("property");
public static final hydra.core.Name FIELD_NAME_CLASS = new hydra.core.Name("class");
public final java.math.BigInteger bound;
public final hydra.ext.org.w3.owl.syntax.ObjectPropertyExpression property;
public final java.util.List class_;
public ObjectMaxCardinality (java.math.BigInteger bound, hydra.ext.org.w3.owl.syntax.ObjectPropertyExpression property, java.util.List class_) {
java.util.Objects.requireNonNull((bound));
java.util.Objects.requireNonNull((property));
java.util.Objects.requireNonNull((class_));
this.bound = bound;
this.property = property;
this.class_ = class_;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof ObjectMaxCardinality)) {
return false;
}
ObjectMaxCardinality o = (ObjectMaxCardinality) (other);
return bound.equals(o.bound) && property.equals(o.property) && class_.equals(o.class_);
}
@Override
public int hashCode() {
return 2 * bound.hashCode() + 3 * property.hashCode() + 5 * class_.hashCode();
}
public ObjectMaxCardinality withBound(java.math.BigInteger bound) {
java.util.Objects.requireNonNull((bound));
return new ObjectMaxCardinality(bound, property, class_);
}
public ObjectMaxCardinality withProperty(hydra.ext.org.w3.owl.syntax.ObjectPropertyExpression property) {
java.util.Objects.requireNonNull((property));
return new ObjectMaxCardinality(bound, property, class_);
}
public ObjectMaxCardinality withClass(java.util.List class_) {
java.util.Objects.requireNonNull((class_));
return new ObjectMaxCardinality(bound, property, class_);
}
}