* Update Javadoc
* Remove `unregsiterAll` method
pull/292/head
Mahmoud Ben Hassine 5 years ago
parent d50bc39fbe
commit 4195d9ce7d
No known key found for this signature in database
GPG Key ID: 2B4156D07E8A1737

@ -69,7 +69,7 @@ public class Rules implements Iterable<Rule> {
}
/**
* Register a new rule.
* Register one or more new rules.
*
* @param rules to register, must not be null
*/
@ -82,7 +82,7 @@ public class Rules implements Iterable<Rule> {
}
/**
* Unregister a rule.
* Unregister one or more rules.
*
* @param rules to unregister, must not be null
*/
@ -94,16 +94,6 @@ public class Rules implements Iterable<Rule> {
}
}
/**
* Unregister a set of rules.
*
* @param rulesSet set to unregister, must not be null
*/
public void unregisterAll(Set<?> rulesSet) {
Objects.requireNonNull(rulesSet);
rulesSet.forEach(this::unregister);
}
/**
* Unregister a rule by name.
*

@ -145,7 +145,7 @@ public class RulesTest {
}
@Test
public void unregisterAll_oneLeft() {
public void unregister_oneLeft() {
rules.register(new BasicRule("ruleA"), new BasicRule("ruleB"));
assertThat(rules.size()).isEqualTo(2);

Loading…
Cancel
Save