FileDocCategorySizeDatePackage
RentalItem.javaAPI DocExample641Thu Dec 26 11:01:36 GMT 2002com.mediamania.store

RentalItem

public class RentalItem extends Object

Fields Summary
private MediaItem
mediaItem
private String
serialNumber
private Rental
currentRental
Constructors Summary
private RentalItem()

 
public RentalItem(MediaItem item, String serialNum)

        mediaItem = item;
        item.addRentalItem(this);
        serialNumber = serialNum;
        currentRental = null;
    
Methods Summary
public RentalgetCurrentRental()

        return currentRental;
    
public MediaItemgetMediaItem()

        return mediaItem;
    
public voidsetCurrentRental(Rental rental)

        currentRental = rental;