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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy