@Override public int hashCode() { return (isVariable() ? 13 * getVariable().hashCode() + 17 : 13 * getPropertyPathExpression().hashCode() + 17); } }
@Override public int hashCode() { return (subject.hashCode() >> 1) ^ propertyPathExpression.hashCode() ^ (object.hashCode() << 1); } }
public SimplePropertyPathPattern(BlankNodeOrIRI subject, PropertyPathExpression propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof PropertyPathPattern)) { return false; } final PropertyPathPattern other = (PropertyPathPattern) obj; if (!this.subject.equals(other.getSubject())) { return false; } if (!this.propertyPathExpression.equals(other.getPropertyPathExpression())) { return false; } if (!this.object.equals(other.getObject())) { return false; } return true; }
public SimplePropertyPathPattern(Variable subject, Variable propertyPathExpression, RDFTerm object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof PropertyPathPattern)) { return false; } final PropertyPathPattern other = (PropertyPathPattern) obj; if (!this.subject.equals(other.getSubject())) { return false; } if (!this.propertyPathExpression.equals(other.getPropertyPathExpression())) { return false; } if (!this.object.equals(other.getObject())) { return false; } return true; }
@Override public int hashCode() { return (isVariable() ? 13 * getVariable().hashCode() + 17 : 13 * getPropertyPathExpression().hashCode() + 17); } }
public SimplePropertyPathPattern(Variable subject, Variable propertyPathExpression, RDFTerm object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
@Override public int hashCode() { return (subject.hashCode() >> 1) ^ propertyPathExpression.hashCode() ^ (object.hashCode() << 1); } }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof PropertyPathExpressionOrVariable)) { return false; } final PropertyPathExpressionOrVariable other = (PropertyPathExpressionOrVariable) obj; if (this.isVariable() != other.isVariable()) { return false; } if (this.isVariable()) { if (!this.getVariable().equals(other.getVariable())) { return false; } } else { if (!this.getPropertyPathExpression().equals(other.getPropertyPathExpression())) { return false; } } return true; }
public SimplePropertyPathPattern(Variable subject, PropertyPathExpression propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof PropertyPathExpressionOrVariable)) { return false; } final PropertyPathExpressionOrVariable other = (PropertyPathExpressionOrVariable) obj; if (this.isVariable() != other.isVariable()) { return false; } if (this.isVariable()) { if (!this.getVariable().equals(other.getVariable())) { return false; } } else { if (!this.getPropertyPathExpression().equals(other.getPropertyPathExpression())) { return false; } } return true; }
public SimplePropertyPathPattern(Variable subject, PropertyPathExpression propertyPathExpression, RDFTerm object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(BlankNodeOrIRI subject, Variable propertyPathExpression, RDFTerm object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(Variable subject, PropertyPathExpression propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(Variable subject, PropertyPathExpression propertyPathExpression, RDFTerm object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(Variable subject, Variable propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(BlankNodeOrIRI subject, Variable propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(Variable subject, Variable propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }
public SimplePropertyPathPattern(BlankNodeOrIRI subject, Variable propertyPathExpression, Variable object) { this(new ResourceOrVariable(subject), new PropertyPathExpressionOrVariable(propertyPathExpression), new ResourceOrVariable(object)); }