hydra.ext.io.shex.syntax.Percent 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 Percent implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/io/shex/syntax.Percent");
public static final hydra.core.Name FIELD_NAME_HEX = new hydra.core.Name("hex");
public static final hydra.core.Name FIELD_NAME_HEX2 = new hydra.core.Name("hex2");
public final hydra.ext.io.shex.syntax.Hex hex;
public final hydra.ext.io.shex.syntax.Hex hex2;
public Percent (hydra.ext.io.shex.syntax.Hex hex, hydra.ext.io.shex.syntax.Hex hex2) {
java.util.Objects.requireNonNull((hex));
java.util.Objects.requireNonNull((hex2));
this.hex = hex;
this.hex2 = hex2;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Percent)) {
return false;
}
Percent o = (Percent) (other);
return hex.equals(o.hex) && hex2.equals(o.hex2);
}
@Override
public int hashCode() {
return 2 * hex.hashCode() + 3 * hex2.hashCode();
}
public Percent withHex(hydra.ext.io.shex.syntax.Hex hex) {
java.util.Objects.requireNonNull((hex));
return new Percent(hex, hex2);
}
public Percent withHex2(hydra.ext.io.shex.syntax.Hex hex2) {
java.util.Objects.requireNonNull((hex2));
return new Percent(hex, hex2);
}
}