@Immutable public interface Rules extends Iterable<Rule>
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String name)
Contains a rule with this name?
|
void |
create(String name)
Create empty default rule with this name.
|
Rule |
get(String name)
Get rule by name (runtime exception if it's absent).
|
void |
remove(String name)
Remove rule by name (runtime exception if it's absent).
|
boolean contains(@NotNull(message="name can\'t be NULL") String name)
name
- The name of it@NotNull(message="rule is never NULL") Rule get(@NotNull(message="unit name can\'t be NULL") String name)
name
- The name of itvoid remove(@NotNull(message="name can\'t be NULL") String name)
name
- The name of itCopyright © 2009–2014 Rultor Inc.. All rights reserved.