/** * Attributes that must be a decimal values * @param names attribute names */ public PactDslJsonBody decimalType(String... names) { for (String name: names) { decimalType(name); } return this; }
/** * Attributes that must be a decimal values * @param names attribute names */ public PactDslJsonBody decimalType(String... names) { for (String name: names) { decimalType(name); } return this; }
public LambdaDslObject decimalType(final String name, final BigDecimal value) { object.decimalType(name, value); return this; }
public LambdaDslObject decimalType(final String name, final Double example) { object.decimalType(name, example); return this; }
public LambdaDslObject decimalType(final String... names) { object.decimalType(names); return this; }
/** * Attribute that must be a real value * @param name attribute name * @deprecated Use decimal instead */ @Deprecated public PactDslJsonBody realType(String name) { return decimalType(name); }
/** * Attribute that must be a real value * @param name attribute name * @deprecated Use decimal instead */ @Deprecated public PactDslJsonBody realType(String name) { return decimalType(name); }
/** * Attribute that must be a real value * @param name attribute name * @param number example real value * @deprecated Use decimal instead */ @Deprecated public PactDslJsonBody realType(String name, Double number) { return decimalType(name, number); }
/** * Attribute that must be a real value * @param name attribute name * @param number example real value * @deprecated Use decimal instead */ @Deprecated public PactDslJsonBody realType(String name, Double number) { return decimalType(name, number); }
/** * Attribute that must be a decimal value * @param name attribute name */ public PactDslJsonBody decimalType(String name) { generators.addGenerator(Category.BODY, matcherKey(name), new RandomDecimalGenerator(10)); return decimalType(name, 100.0); }
/** * Attribute that must be a decimal value * @param name attribute name */ public PactDslJsonBody decimalType(String name) { generators.addGenerator(Category.BODY, matcherKey(name), new RandomDecimalGenerator(10)); return decimalType(name, 100.0); }