hydra.ext.io.shex.syntax.MultiElementGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-ext Show documentation
Show all versions of hydra-ext Show documentation
Hydra language extensions in Java; models, coders, and utilities
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 MultiElementGroup implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/io/shex/syntax.MultiElementGroup");
public static final hydra.core.Name FIELD_NAME_UNARY_TRIPLE_EXPR = new hydra.core.Name("unaryTripleExpr");
public static final hydra.core.Name FIELD_NAME_LIST_OF_SEQUENCE = new hydra.core.Name("listOfSequence");
public static final hydra.core.Name FIELD_NAME_SEMI = new hydra.core.Name("semi");
public final hydra.ext.io.shex.syntax.UnaryTripleExpr unaryTripleExpr;
public final java.util.List listOfSequence;
public final hydra.util.Opt semi;
public MultiElementGroup (hydra.ext.io.shex.syntax.UnaryTripleExpr unaryTripleExpr, java.util.List listOfSequence, hydra.util.Opt semi) {
java.util.Objects.requireNonNull((unaryTripleExpr));
java.util.Objects.requireNonNull((listOfSequence));
java.util.Objects.requireNonNull((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.ext.io.shex.syntax.UnaryTripleExpr unaryTripleExpr) {
java.util.Objects.requireNonNull((unaryTripleExpr));
return new MultiElementGroup(unaryTripleExpr, listOfSequence, semi);
}
public MultiElementGroup withListOfSequence(java.util.List listOfSequence) {
java.util.Objects.requireNonNull((listOfSequence));
return new MultiElementGroup(unaryTripleExpr, listOfSequence, semi);
}
public MultiElementGroup withSemi(hydra.util.Opt semi) {
java.util.Objects.requireNonNull((semi));
return new MultiElementGroup(unaryTripleExpr, listOfSequence, semi);
}
}