hydra.ext.io.shex.syntax.InlineShapeDefinition 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
// Note: this is an automatically generated file. Do not edit.
package hydra.ext.io.shex.syntax;
import java.io.Serializable;
public class InlineShapeDefinition implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/io/shex/syntax.InlineShapeDefinition");
public static final hydra.core.Name FIELD_NAME_LIST_OF_ALTS = new hydra.core.Name("listOfAlts");
public static final hydra.core.Name FIELD_NAME_TRIPLE_EXPRESSION = new hydra.core.Name("tripleExpression");
public final java.util.List listOfAlts;
public final hydra.util.Opt tripleExpression;
public InlineShapeDefinition (java.util.List listOfAlts, hydra.util.Opt tripleExpression) {
java.util.Objects.requireNonNull((listOfAlts));
java.util.Objects.requireNonNull((tripleExpression));
this.listOfAlts = listOfAlts;
this.tripleExpression = tripleExpression;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof InlineShapeDefinition)) {
return false;
}
InlineShapeDefinition o = (InlineShapeDefinition) (other);
return listOfAlts.equals(o.listOfAlts) && tripleExpression.equals(o.tripleExpression);
}
@Override
public int hashCode() {
return 2 * listOfAlts.hashCode() + 3 * tripleExpression.hashCode();
}
public InlineShapeDefinition withListOfAlts(java.util.List listOfAlts) {
java.util.Objects.requireNonNull((listOfAlts));
return new InlineShapeDefinition(listOfAlts, tripleExpression);
}
public InlineShapeDefinition withTripleExpression(hydra.util.Opt tripleExpression) {
java.util.Objects.requireNonNull((tripleExpression));
return new InlineShapeDefinition(listOfAlts, tripleExpression);
}
}