hydra.langs.owl.syntax.DataSomeValuesFrom Maven / Gradle / Ivy
package hydra.langs.owl.syntax;
import java.io.Serializable;
public class DataSomeValuesFrom implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/owl/syntax.DataSomeValuesFrom");
public final java.util.List property;
public final hydra.langs.owl.syntax.DataRange range;
public DataSomeValuesFrom (java.util.List property, hydra.langs.owl.syntax.DataRange range) {
this.property = property;
this.range = range;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof DataSomeValuesFrom)) {
return false;
}
DataSomeValuesFrom o = (DataSomeValuesFrom) (other);
return property.equals(o.property) && range.equals(o.range);
}
@Override
public int hashCode() {
return 2 * property.hashCode() + 3 * range.hashCode();
}
public DataSomeValuesFrom withProperty(java.util.List property) {
return new DataSomeValuesFrom(property, range);
}
public DataSomeValuesFrom withRange(hydra.langs.owl.syntax.DataRange range) {
return new DataSomeValuesFrom(property, range);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy