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