/** * Element that is an array where each item must match the following example */ @Override public PactDslJsonBody eachLike() { return eachLike(1); }
/** * Array of values that are not objects where each item must match the provided example * @param value Value to use to match each item */ public PactDslJsonArray eachLike(PactDslJsonRootValue value) { return eachLike(value, 1); }
/** * Element that is an array where each item must match the following example */ @Override public PactDslJsonBody eachLike() { return eachLike(1); }
/** * Array of values that are not objects where each item must match the provided example * @param value Value to use to match each item */ public PactDslJsonArray eachLike(PactDslJsonRootValue value) { return eachLike(value, 1); }
/** * Element that is an array where each item must match the following example * @deprecated use eachLike */ @Override @Deprecated public PactDslJsonBody arrayLike() { return eachLike(); }
/** * Element that is an array where each item must match the following example * @deprecated use eachLike */ @Override @Deprecated public PactDslJsonBody arrayLike() { return eachLike(); }
/** * Element that is an array where each item must match the following example * * @param numberExamples Number of examples to generate */ public LambdaDslJsonArray eachLike(int numberExamples, Consumer<LambdaDslJsonBody> nestedObject) { final PactDslJsonBody arrayLike = pactArray.eachLike(numberExamples); final LambdaDslJsonBody dslBody = new LambdaDslJsonBody(arrayLike); nestedObject.accept(dslBody); arrayLike.closeArray(); return this; }
/** * Element that is an array where each item must match the following example */ public LambdaDslJsonArray eachLike(Consumer<LambdaDslJsonBody> nestedObject) { final PactDslJsonBody arrayLike = pactArray.eachLike(); final LambdaDslJsonBody dslBody = new LambdaDslJsonBody(arrayLike); nestedObject.accept(dslBody); arrayLike.closeArray(); return this; }