/** * Creates a new object initialized with the given values. * * @param value initial value for the {@link Price#getValue()} property * @return new object initialized with the given values */ public static PriceBuilder of(final MonetaryAmount value) { return new PriceBuilder(null, null, null, null, null, null, null, null, null, value); }
public static PriceBuilder of(final MonetaryAmount value) { return new PriceBuilder(MoneyImpl.of(value)); }
public static PriceBuilder of(final MonetaryAmount value) { return new PriceBuilder(MoneyImpl.of(value)); }
public static PriceBuilder of(final MonetaryAmount value) { return new PriceBuilder(MoneyImpl.of(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 PriceBuilder of(final Price template) { return new PriceBuilder(template.getChannel(), template.getCountry(), template.getCustom(), template.getCustomerGroup(), template.getDiscounted(), template.getId(), template.getTiers(), template.getValidFrom(), template.getValidUntil(), template.getValue()); } }