/** * 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()); } }