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

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

There is a newer version: 0.8.1
Show newest version
// 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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy