/* Milyn - Copyright (C) 2006 - 2010 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1) as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details: http://www.gnu.org/licenses/lgpl.txt */ package example.trgmodel; import java.math.BigDecimal; import java.util.Arrays; /** * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a> */ public class LineItem { private String productCode; private int unitQuantity; private BigDecimal unitPrice; public String getProductCode() { return productCode; } public void setProductCode(String productCode) { this.productCode = productCode; } public int getUnitQuantity() { return unitQuantity; } public void setUnitQuantity(int unitQuantity) { this.unitQuantity = unitQuantity; } public BigDecimal getUnitPrice() { return unitPrice; } public void setUnitPrice(BigDecimal unitPrice) { this.unitPrice = unitPrice; } public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("{productCode: " + productCode + " | "); stringBuilder.append("unitQuantity: " + unitQuantity + " | "); stringBuilder.append("unitPrice: " + unitPrice + "}"); return stringBuilder.toString(); } }