@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; }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof ResourceOrVariable)) { return false; } final ResourceOrVariable other = (ResourceOrVariable) obj; if (this.isVariable() != other.isVariable()) { return false; } if (this.isVariable()) { if (!this.getVariable().equals(other.getVariable())) { return false; } } else { if (!this.getResource().equals(other.getResource())) { return false; } } return true; }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof ResourceOrVariable)) { return false; } final ResourceOrVariable other = (ResourceOrVariable) obj; if (this.isVariable() != other.isVariable()) { return false; } if (this.isVariable()) { if (!this.getVariable().equals(other.getVariable())) { return false; } } else { if (!this.getResource().equals(other.getResource())) { return false; } } return true; }
@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; }