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

hydra.ext.io.shex.syntax.InlineShapeOr Maven / Gradle / Ivy

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 InlineShapeOr implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/io/shex/syntax.InlineShapeOr");
  
  public static final hydra.core.Name FIELD_NAME_SHAPE_AND = new hydra.core.Name("shapeAnd");
  
  public static final hydra.core.Name FIELD_NAME_LIST_OF_SEQUENCE = new hydra.core.Name("listOfSequence");
  
  public final hydra.ext.io.shex.syntax.ShapeAnd shapeAnd;
  
  public final java.util.List listOfSequence;
  
  public InlineShapeOr (hydra.ext.io.shex.syntax.ShapeAnd shapeAnd, java.util.List listOfSequence) {
    java.util.Objects.requireNonNull((shapeAnd));
    java.util.Objects.requireNonNull((listOfSequence));
    this.shapeAnd = shapeAnd;
    this.listOfSequence = listOfSequence;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof InlineShapeOr)) {
      return false;
    }
    InlineShapeOr o = (InlineShapeOr) (other);
    return shapeAnd.equals(o.shapeAnd) && listOfSequence.equals(o.listOfSequence);
  }
  
  @Override
  public int hashCode() {
    return 2 * shapeAnd.hashCode() + 3 * listOfSequence.hashCode();
  }
  
  public InlineShapeOr withShapeAnd(hydra.ext.io.shex.syntax.ShapeAnd shapeAnd) {
    java.util.Objects.requireNonNull((shapeAnd));
    return new InlineShapeOr(shapeAnd, listOfSequence);
  }
  
  public InlineShapeOr withListOfSequence(java.util.List listOfSequence) {
    java.util.Objects.requireNonNull((listOfSequence));
    return new InlineShapeOr(shapeAnd, listOfSequence);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy