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

hydra.ext.io.shex.syntax.Regexp 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 Regexp implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/io/shex/syntax.Regexp");
  
  public static final hydra.core.Name FIELD_NAME_LIST_OF_ALTS = new hydra.core.Name("listOfAlts");
  
  public static final hydra.core.Name FIELD_NAME_LIST_OF_REGEX = new hydra.core.Name("listOfRegex");
  
  public final java.util.List listOfAlts;
  
  public final java.util.List listOfRegex;
  
  public Regexp (java.util.List listOfAlts, java.util.List listOfRegex) {
    java.util.Objects.requireNonNull((listOfAlts));
    java.util.Objects.requireNonNull((listOfRegex));
    this.listOfAlts = listOfAlts;
    this.listOfRegex = listOfRegex;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof Regexp)) {
      return false;
    }
    Regexp o = (Regexp) (other);
    return listOfAlts.equals(o.listOfAlts) && listOfRegex.equals(o.listOfRegex);
  }
  
  @Override
  public int hashCode() {
    return 2 * listOfAlts.hashCode() + 3 * listOfRegex.hashCode();
  }
  
  public Regexp withListOfAlts(java.util.List listOfAlts) {
    java.util.Objects.requireNonNull((listOfAlts));
    return new Regexp(listOfAlts, listOfRegex);
  }
  
  public Regexp withListOfRegex(java.util.List listOfRegex) {
    java.util.Objects.requireNonNull((listOfRegex));
    return new Regexp(listOfAlts, listOfRegex);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy