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

hydra.ext.io.shex.syntax.StringLiteralLong1_Elmt_Sequence 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 StringLiteralLong1_Elmt_Sequence implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/io/shex/syntax.StringLiteralLong1.Elmt.Sequence");
  
  public static final hydra.core.Name FIELD_NAME_ALTS = new hydra.core.Name("alts");
  
  public static final hydra.core.Name FIELD_NAME_REGEX = new hydra.core.Name("regex");
  
  public final hydra.util.Opt alts;
  
  public final String regex;
  
  public StringLiteralLong1_Elmt_Sequence (hydra.util.Opt alts, String regex) {
    java.util.Objects.requireNonNull((alts));
    java.util.Objects.requireNonNull((regex));
    this.alts = alts;
    this.regex = regex;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof StringLiteralLong1_Elmt_Sequence)) {
      return false;
    }
    StringLiteralLong1_Elmt_Sequence o = (StringLiteralLong1_Elmt_Sequence) (other);
    return alts.equals(o.alts) && regex.equals(o.regex);
  }
  
  @Override
  public int hashCode() {
    return 2 * alts.hashCode() + 3 * regex.hashCode();
  }
  
  public StringLiteralLong1_Elmt_Sequence withAlts(hydra.util.Opt alts) {
    java.util.Objects.requireNonNull((alts));
    return new StringLiteralLong1_Elmt_Sequence(alts, regex);
  }
  
  public StringLiteralLong1_Elmt_Sequence withRegex(String regex) {
    java.util.Objects.requireNonNull((regex));
    return new StringLiteralLong1_Elmt_Sequence(alts, regex);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy