All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hydra.ext.org.w3.owl.syntax.DataAllValuesFrom Maven / Gradle / Ivy

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 DataAllValuesFrom implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/w3/owl/syntax.DataAllValuesFrom");
  
  public static final hydra.core.Name FIELD_NAME_PROPERTY = new hydra.core.Name("property");
  
  public static final hydra.core.Name FIELD_NAME_RANGE = new hydra.core.Name("range");
  
  public final java.util.List property;
  
  public final hydra.ext.org.w3.owl.syntax.DataRange range;
  
  public DataAllValuesFrom (java.util.List property, hydra.ext.org.w3.owl.syntax.DataRange range) {
    java.util.Objects.requireNonNull((property));
    java.util.Objects.requireNonNull((range));
    this.property = property;
    this.range = range;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof DataAllValuesFrom)) {
      return false;
    }
    DataAllValuesFrom o = (DataAllValuesFrom) (other);
    return property.equals(o.property) && range.equals(o.range);
  }
  
  @Override
  public int hashCode() {
    return 2 * property.hashCode() + 3 * range.hashCode();
  }
  
  public DataAllValuesFrom withProperty(java.util.List property) {
    java.util.Objects.requireNonNull((property));
    return new DataAllValuesFrom(property, range);
  }
  
  public DataAllValuesFrom withRange(hydra.ext.org.w3.owl.syntax.DataRange range) {
    java.util.Objects.requireNonNull((range));
    return new DataAllValuesFrom(property, range);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy