hydra.langs.shex.syntax.InlineShapeAtom_Sequence Maven / Gradle / Ivy
package hydra.langs.shex.syntax;
import java.io.Serializable;
public class InlineShapeAtom_Sequence implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/shex/syntax.InlineShapeAtom.Sequence");
public final hydra.langs.shex.syntax.NodeConstraint nodeConstraint;
public final java.util.Optional inlineShapeOrRef;
public InlineShapeAtom_Sequence (hydra.langs.shex.syntax.NodeConstraint nodeConstraint, java.util.Optional 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.langs.shex.syntax.NodeConstraint nodeConstraint) {
return new InlineShapeAtom_Sequence(nodeConstraint, inlineShapeOrRef);
}
public InlineShapeAtom_Sequence withInlineShapeOrRef(java.util.Optional inlineShapeOrRef) {
return new InlineShapeAtom_Sequence(nodeConstraint, inlineShapeOrRef);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy