hydra.ext.io.shex.syntax.Regexp 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 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);
}
}