@Override public boolean equals(Object object) { if (!(object instanceof Relation)) { return false; } Relation other = (Relation) object; return this.relation().equals(other.relation()) && this.key().equals(other.key()) && this.value().equals(other.value()); }
public boolean containsCondition(HugeKeys key, Condition.RelationType type) { for (Relation r : this.relations()) { if (r.key().equals(key) && r.relation().equals(type)) { return true; } } return false; }
@Override public boolean equals(Object object) { if (!(object instanceof Relation)) { return false; } Relation other = (Relation) object; return this.relation().equals(other.relation()) && this.key().equals(other.key()) && this.value().equals(other.value()); }
public boolean containsCondition(Condition.RelationType type) { for (Relation r : this.relations()) { if (r.relation().equals(type)) { return true; } } return false; }
public boolean containsCondition(HugeKeys key, Condition.RelationType type) { for (Relation r : this.relations()) { if (r.key().equals(key) && r.relation().equals(type)) { return true; } } return false; }
public boolean containsCondition(Condition.RelationType type) { for (Relation r : this.relations()) { if (r.relation().equals(type)) { return true; } } return false; }