public Pact<I extends Interaction>
Interface to a pact
@NotNull Provider getProvider()
Returns the provider of the service for the pact
@NotNull Consumer getConsumer()
Returns the consumer of the service for the pact
@NotNull java.util.List<I> getInteractions()
Returns all the interactions of the pact
@NotNull PactSource getSource()
The source that this pact was loaded from
@NotNull Pact<I> sortInteractions()
Returns a pact with the interactions sorted
@NotNull
java.util.Map<java.lang.String,?> toMap(@NotNull
PactSpecVersion pactSpecVersion)
Returns a Map representation of this pact for the purpose of generating a JSON document.
boolean compatibleTo(@NotNull
Pact<?> other)
If this pact is compatible with the other pact. Pacts are compatible if they have the same provider and they are the same type
void mergeInteractions(@NotNull
java.util.List<?> interactions)
Merges all the interactions into this Pact
interactions -