hydra.langs.shex.syntax.MultiElementGroup Maven / Gradle / Ivy
package hydra.langs.shex.syntax;
import java.io.Serializable;
public class MultiElementGroup implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/shex/syntax.MultiElementGroup");
public final hydra.langs.shex.syntax.UnaryTripleExpr unaryTripleExpr;
public final java.util.List listOfSequence;
public final java.util.Optional semi;
public MultiElementGroup (hydra.langs.shex.syntax.UnaryTripleExpr unaryTripleExpr, java.util.List listOfSequence, java.util.Optional semi) {
this.unaryTripleExpr = unaryTripleExpr;
this.listOfSequence = listOfSequence;
this.semi = semi;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof MultiElementGroup)) {
return false;
}
MultiElementGroup o = (MultiElementGroup) (other);
return unaryTripleExpr.equals(o.unaryTripleExpr) && listOfSequence.equals(o.listOfSequence) && semi.equals(o.semi);
}
@Override
public int hashCode() {
return 2 * unaryTripleExpr.hashCode() + 3 * listOfSequence.hashCode() + 5 * semi.hashCode();
}
public MultiElementGroup withUnaryTripleExpr(hydra.langs.shex.syntax.UnaryTripleExpr unaryTripleExpr) {
return new MultiElementGroup(unaryTripleExpr, listOfSequence, semi);
}
public MultiElementGroup withListOfSequence(java.util.List listOfSequence) {
return new MultiElementGroup(unaryTripleExpr, listOfSequence, semi);
}
public MultiElementGroup withSemi(java.util.Optional semi) {
return new MultiElementGroup(unaryTripleExpr, listOfSequence, semi);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy