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

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

The newest version!
// Note: this is an automatically generated file. Do not edit.

package hydra.ext.io.shex.syntax;

import java.io.Serializable;

public class InlineShapeAtom_Sequence implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/io/shex/syntax.InlineShapeAtom.Sequence");
  
  public static final hydra.core.Name FIELD_NAME_NODE_CONSTRAINT = new hydra.core.Name("nodeConstraint");
  
  public static final hydra.core.Name FIELD_NAME_INLINE_SHAPE_OR_REF = new hydra.core.Name("inlineShapeOrRef");
  
  public final hydra.ext.io.shex.syntax.NodeConstraint nodeConstraint;
  
  public final hydra.util.Opt inlineShapeOrRef;
  
  public InlineShapeAtom_Sequence (hydra.ext.io.shex.syntax.NodeConstraint nodeConstraint, hydra.util.Opt inlineShapeOrRef) {
    java.util.Objects.requireNonNull((nodeConstraint));
    java.util.Objects.requireNonNull((inlineShapeOrRef));
    this.nodeConstraint = nodeConstraint;
    this.inlineShapeOrRef = inlineShapeOrRef;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof InlineShapeAtom_Sequence)) {
      return false;
    }
    InlineShapeAtom_Sequence o = (InlineShapeAtom_Sequence) (other);
    return nodeConstraint.equals(o.nodeConstraint) && inlineShapeOrRef.equals(o.inlineShapeOrRef);
  }
  
  @Override
  public int hashCode() {
    return 2 * nodeConstraint.hashCode() + 3 * inlineShapeOrRef.hashCode();
  }
  
  public InlineShapeAtom_Sequence withNodeConstraint(hydra.ext.io.shex.syntax.NodeConstraint nodeConstraint) {
    java.util.Objects.requireNonNull((nodeConstraint));
    return new InlineShapeAtom_Sequence(nodeConstraint, inlineShapeOrRef);
  }
  
  public InlineShapeAtom_Sequence withInlineShapeOrRef(hydra.util.Opt inlineShapeOrRef) {
    java.util.Objects.requireNonNull((inlineShapeOrRef));
    return new InlineShapeAtom_Sequence(nodeConstraint, inlineShapeOrRef);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy