Add note that it's not intended to remove facts using Facts#iterator

Issue #268
pull/284/head
Mahmoud Ben Hassine 5 years ago
parent 1420af6c5f
commit d462fb3a13
No known key found for this signature in database
GPG Key ID: 79FCFB0A184E0036

@ -89,6 +89,12 @@ public class Facts implements Iterable<Map.Entry<String, Object>> {
return new HashMap<>(facts);
}
/**
* Return an iterator on the set of facts. It is not intended to remove
* facts using this iterator outside of the rules engine (aka other than doing it through rules)
*
* @return an iterator on the set of facts
*/
@Override
public Iterator<Map.Entry<String, Object>> iterator() {
return facts.entrySet().iterator();

Loading…
Cancel
Save