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

hydra.ext.io.shex.syntax.NodeConstraint_Sequence4 Maven / Gradle / Ivy

There is a newer version: 0.8.1
Show newest version
// Note: this is an automatically generated file. Do not edit.

package hydra.ext.io.shex.syntax;

import java.io.Serializable;

public class NodeConstraint_Sequence4 implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/io/shex/syntax.NodeConstraint.Sequence4");
  
  public static final hydra.core.Name FIELD_NAME_VALUE_SET = new hydra.core.Name("valueSet");
  
  public static final hydra.core.Name FIELD_NAME_LIST_OF_XS_FACET = new hydra.core.Name("listOfXsFacet");
  
  public final hydra.ext.io.shex.syntax.ValueSet valueSet;
  
  public final java.util.List listOfXsFacet;
  
  public NodeConstraint_Sequence4 (hydra.ext.io.shex.syntax.ValueSet valueSet, java.util.List listOfXsFacet) {
    java.util.Objects.requireNonNull((valueSet));
    java.util.Objects.requireNonNull((listOfXsFacet));
    this.valueSet = valueSet;
    this.listOfXsFacet = listOfXsFacet;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof NodeConstraint_Sequence4)) {
      return false;
    }
    NodeConstraint_Sequence4 o = (NodeConstraint_Sequence4) (other);
    return valueSet.equals(o.valueSet) && listOfXsFacet.equals(o.listOfXsFacet);
  }
  
  @Override
  public int hashCode() {
    return 2 * valueSet.hashCode() + 3 * listOfXsFacet.hashCode();
  }
  
  public NodeConstraint_Sequence4 withValueSet(hydra.ext.io.shex.syntax.ValueSet valueSet) {
    java.util.Objects.requireNonNull((valueSet));
    return new NodeConstraint_Sequence4(valueSet, listOfXsFacet);
  }
  
  public NodeConstraint_Sequence4 withListOfXsFacet(java.util.List listOfXsFacet) {
    java.util.Objects.requireNonNull((listOfXsFacet));
    return new NodeConstraint_Sequence4(valueSet, listOfXsFacet);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy