/** * Creates a new object initialized with the given values. * * @param minimumQuantity initial value for the {@link PriceTier#getMinimumQuantity()} property * @param value initial value for the {@link PriceTier#getValue()} property * @return new object initialized with the given values */ public static PriceTierBuilder of(final Integer minimumQuantity, final MonetaryAmount value) { return new PriceTierBuilder(minimumQuantity, value); }
/** * Creates a new object initialized with the fields of the template parameter. * * @param template the template * @return a new object initialized from the template */ public static PriceTierBuilder of(final PriceTier template) { return new PriceTierBuilder(template.getMinimumQuantity(), template.getValue()); } }