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

hydra.langs.shex.syntax.NodeConstraint_Sequence5 Maven / Gradle / Ivy

package hydra.langs.shex.syntax;

import java.io.Serializable;

public class NodeConstraint_Sequence5 implements Serializable {
  public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/shex/syntax.NodeConstraint.Sequence5");
  
  public final hydra.langs.shex.syntax.ValueSet valueSet;
  
  public final java.util.List listOfXsFacet;
  
  public NodeConstraint_Sequence5 (hydra.langs.shex.syntax.ValueSet valueSet, java.util.List listOfXsFacet) {
    this.valueSet = valueSet;
    this.listOfXsFacet = listOfXsFacet;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof NodeConstraint_Sequence5)) {
      return false;
    }
    NodeConstraint_Sequence5 o = (NodeConstraint_Sequence5) (other);
    return valueSet.equals(o.valueSet) && listOfXsFacet.equals(o.listOfXsFacet);
  }
  
  @Override
  public int hashCode() {
    return 2 * valueSet.hashCode() + 3 * listOfXsFacet.hashCode();
  }
  
  public NodeConstraint_Sequence5 withValueSet(hydra.langs.shex.syntax.ValueSet valueSet) {
    return new NodeConstraint_Sequence5(valueSet, listOfXsFacet);
  }
  
  public NodeConstraint_Sequence5 withListOfXsFacet(java.util.List listOfXsFacet) {
    return new NodeConstraint_Sequence5(valueSet, listOfXsFacet);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy