public MatchingRules
Collection of all matching rules
@NotNull Category rulesForCategory(@NotNull java.lang.String category)
Get all the rules for a given category
@NotNull Category addCategory(@NotNull java.lang.String category)
Adds a new category with the given name to the collection
@NotNull Category addCategory(@NotNull Category category)
Adds the category to the collection
boolean isEmpty()
If the matching rules are empty
boolean isNotEmpty()
If the matching rules is not empty
boolean hasCategory(@NotNull
java.lang.String category)
If the matching rules has the named category
@NotNull java.util.Set<java.lang.String> getCategories()
Returns the set of all categories that rules are defined for
@NotNull
java.util.Map<java.lang.String,java.lang.Object> toMap(@NotNull
PactSpecVersion pactSpecVersion)
Converts these rules into a Map that can be serialised to JSON
@NotNull MatchingRules copy()
Create a new copy of the matching rules