Class IndexedByHeadPredicatesRuleSet
java.lang.Object
fr.lirmm.graphik.integraal.core.ruleset.AbstractRuleSet
fr.lirmm.graphik.integraal.core.ruleset.LinkedListRuleSet
fr.lirmm.graphik.integraal.core.ruleset.IndexedByHeadPredicatesRuleSet
- All Implemented Interfaces:
ImmutableRuleSet, RuleSet, Iterable<Rule>, Collection<Rule>
Rule set indexed by predicates occurring in rule heads.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty rule set indexed by head predicates.Creates a rule set indexed by head predicates and initialized with the given rules. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds a rule to this set.booleanaddAll(Collection<? extends Rule> c) voidclear()getRulesByHeadPredicate(Predicate predicate) Returns the rules having the given predicate in their head.booleanRemoves a rule from this set.booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) Methods inherited from class LinkedListRuleSet
contains, contains, containsAll, isEmpty, iterator, size, toArray, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
IndexedByHeadPredicatesRuleSet
public IndexedByHeadPredicatesRuleSet()Creates an empty rule set indexed by head predicates. -
IndexedByHeadPredicatesRuleSet
-
-
Method Details
-
getRulesByHeadPredicate
-
add
Description copied from interface:RuleSetAdds a rule to this set.- Specified by:
addin interfaceCollection<Rule>- Specified by:
addin interfaceRuleSet- Overrides:
addin classLinkedListRuleSet- Parameters:
rule- the rule to add- Returns:
- true if this set changed as a result of the call
-
addAll
- Specified by:
addAllin interfaceCollection<Rule>- Overrides:
addAllin classLinkedListRuleSet
-
remove
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Rule>- Overrides:
clearin classLinkedListRuleSet
-
remove
- Specified by:
removein interfaceCollection<Rule>- Overrides:
removein classLinkedListRuleSet
-
removeAll
- Specified by:
removeAllin interfaceCollection<Rule>- Overrides:
removeAllin classLinkedListRuleSet
-
retainAll
- Specified by:
retainAllin interfaceCollection<Rule>- Overrides:
retainAllin classLinkedListRuleSet
-