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