Modifier and Type | Field and Description |
---|---|
private BigDecimal |
amount |
private int |
count |
private String |
description |
private int |
id |
Constructor and Description |
---|
PurchaseItem() |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
getAmount() |
int |
getCount() |
String |
getDescription() |
int |
getId() |
BigDecimal |
getTotal() |
PurchaseItem |
setAmount(BigDecimal amount) |
PurchaseItem |
setCount(int count) |
PurchaseItem |
setDescription(String description) |
String |
toString() |
private int id
@NotNull(message="item description is required") @Size(max=20, message="description too large") private String description
@NotNull(message="item amount is required") private BigDecimal amount
public int getId()
public String getDescription()
public PurchaseItem setDescription(String description)
public BigDecimal getAmount()
public PurchaseItem setAmount(BigDecimal amount)
public int getCount()
public PurchaseItem setCount(int count)
public BigDecimal getTotal()
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.