Methods Summary |
---|
public void | addRentalItem(RentalItem rentalItem)
rentalItems.add(rentalItem);
|
public java.lang.String | getFormat()
return format;
|
public com.mediamania.content.MediaContent | getMediaContent()
return content;
|
public java.math.BigDecimal | getPurchasePrice()
return purchasePrice;
|
public RentalCode | getRentalCode()
return rentalCode;
|
public java.util.Set | getRentalItems()
return Collections.unmodifiableSet(rentalItems);
|
public void | setRentalCode(RentalCode code)
rentalCode = code;
|
public void | sold(int qty)
if (qty > quantityInStockForPurchase) {
// report error
}
quantityInStockForPurchase -= qty;
soldYTD += qty;
|