hydra.ext.io.shex.syntax.AtpNameLn 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
// Note: this is an automatically generated file. Do not edit.
package hydra.ext.io.shex.syntax;
import java.io.Serializable;
public class AtpNameLn implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/io/shex/syntax.AtpNameLn");
public static final hydra.core.Name FIELD_NAME_PNAME_NS = new hydra.core.Name("pnameNs");
public static final hydra.core.Name FIELD_NAME_PN_LOCAL = new hydra.core.Name("pnLocal");
public final hydra.ext.io.shex.syntax.PnameNs pnameNs;
public final hydra.ext.io.shex.syntax.PnLocal pnLocal;
public AtpNameLn (hydra.ext.io.shex.syntax.PnameNs pnameNs, hydra.ext.io.shex.syntax.PnLocal pnLocal) {
java.util.Objects.requireNonNull((pnameNs));
java.util.Objects.requireNonNull((pnLocal));
this.pnameNs = pnameNs;
this.pnLocal = pnLocal;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof AtpNameLn)) {
return false;
}
AtpNameLn o = (AtpNameLn) (other);
return pnameNs.equals(o.pnameNs) && pnLocal.equals(o.pnLocal);
}
@Override
public int hashCode() {
return 2 * pnameNs.hashCode() + 3 * pnLocal.hashCode();
}
public AtpNameLn withPnameNs(hydra.ext.io.shex.syntax.PnameNs pnameNs) {
java.util.Objects.requireNonNull((pnameNs));
return new AtpNameLn(pnameNs, pnLocal);
}
public AtpNameLn withPnLocal(hydra.ext.io.shex.syntax.PnLocal pnLocal) {
java.util.Objects.requireNonNull((pnLocal));
return new AtpNameLn(pnameNs, pnLocal);
}
}