hydra.ext.io.shex.syntax.StringLiteralLong1_Elmt_Sequence Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-ext Show documentation
Show all versions of hydra-ext Show documentation
Hydra language extensions in Java; models, coders, and utilities
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);
}
}