hydra.langs.cypher.openCypher.RelationshipDetail Maven / Gradle / Ivy
package hydra.langs.cypher.openCypher;
import java.io.Serializable;
public class RelationshipDetail implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/cypher/openCypher.RelationshipDetail");
public final java.util.Optional variable;
public final java.util.List types;
public final java.util.Optional range;
public final java.util.Optional properties;
public RelationshipDetail (java.util.Optional variable, java.util.List types, java.util.Optional range, java.util.Optional properties) {
this.variable = variable;
this.types = types;
this.range = range;
this.properties = properties;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof RelationshipDetail)) {
return false;
}
RelationshipDetail o = (RelationshipDetail) (other);
return variable.equals(o.variable) && types.equals(o.types) && range.equals(o.range) && properties.equals(o.properties);
}
@Override
public int hashCode() {
return 2 * variable.hashCode() + 3 * types.hashCode() + 5 * range.hashCode() + 7 * properties.hashCode();
}
public RelationshipDetail withVariable(java.util.Optional variable) {
return new RelationshipDetail(variable, types, range, properties);
}
public RelationshipDetail withTypes(java.util.List types) {
return new RelationshipDetail(variable, types, range, properties);
}
public RelationshipDetail withRange(java.util.Optional range) {
return new RelationshipDetail(variable, types, range, properties);
}
public RelationshipDetail withProperties(java.util.Optional properties) {
return new RelationshipDetail(variable, types, range, properties);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy