Class AbstractRuleSet
java.lang.Object
fr.lirmm.graphik.integraal.core.ruleset.AbstractRuleSet
- All Implemented Interfaces:
ImmutableRuleSet, RuleSet, Iterable<Rule>
- Direct Known Subclasses:
LinkedListRuleSet
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates an abstract rule set base implementation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAll(CloseableIterator<Rule> ruleIterator) Adds all rules provided by the specified closeable iterator.booleanAdds all rules provided by the specified iterator.booleanremoveAll(CloseableIterator<Rule> ruleIterator) Removes all rules provided by the specified closeable iterator.booleanRemoves all rules provided by the specified iterator.toString()voidAppends a string representation of this rule set to the given builder.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
AbstractRuleSet
protected AbstractRuleSet()Creates an abstract rule set base implementation.
-
-
Method Details
-
addAll
-
addAll
Description copied from interface:RuleSetAdds all rules provided by the specified closeable iterator.- Specified by:
addAllin interfaceRuleSet- Parameters:
ruleIterator- the rules to add- Returns:
- true if this set changed as a result of the call
- Throws:
RuleSetException- if the iteration fails
-
removeAll
Description copied from interface:RuleSetRemoves all rules provided by the specified iterator. -
removeAll
Description copied from interface:RuleSetRemoves all rules provided by the specified closeable iterator.- Specified by:
removeAllin interfaceRuleSet- Parameters:
ruleIterator- the rules to remove- Returns:
- true if this set changed as a result of the call
- Throws:
RuleSetException- if the iteration fails
-
toString
-
toString
Appends a string representation of this rule set to the given builder.- Parameters:
sb- the target builder
-