All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hydra.langs.shex.syntax.ShapeNot Maven / Gradle / Ivy

package hydra.langs.shex.syntax;

import java.io.Serializable;

public class ShapeNot implements Serializable {
  public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/shex/syntax.ShapeNot");
  
  public final java.util.Optional nOT;
  
  public final hydra.langs.shex.syntax.ShapeAtom shapeAtom;
  
  public ShapeNot (java.util.Optional nOT, hydra.langs.shex.syntax.ShapeAtom shapeAtom) {
    this.nOT = nOT;
    this.shapeAtom = shapeAtom;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof ShapeNot)) {
      return false;
    }
    ShapeNot o = (ShapeNot) (other);
    return nOT.equals(o.nOT) && shapeAtom.equals(o.shapeAtom);
  }
  
  @Override
  public int hashCode() {
    return 2 * nOT.hashCode() + 3 * shapeAtom.hashCode();
  }
  
  public ShapeNot withNOT(java.util.Optional nOT) {
    return new ShapeNot(nOT, shapeAtom);
  }
  
  public ShapeNot withShapeAtom(hydra.langs.shex.syntax.ShapeAtom shapeAtom) {
    return new ShapeNot(nOT, shapeAtom);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy