FileDocCategorySizeDatePackage
Customer.javaAPI DocExample1532Sun Nov 03 20:13:22 GMT 2002com.mediamania.store

Customer

public class Customer extends Object

Fields Summary
private String
firstName
private String
lastName
private Address
address
private String
phone
private String
email
private Set
currentRentals
private List
transactionHistory
Constructors Summary
private Customer()

 
public Customer(String firstName, String lastName, Address addr, String phone, String email)

        this.firstName = firstName;
        this.lastName = lastName;
        address = addr;
        this.phone = phone;
        this.email = email;
        currentRentals = new HashSet();
        transactionHistory = new ArrayList();
    
Methods Summary
public voidaddRental(Rental rental)

        currentRentals.add(rental);
    
public voidaddTransaction(Transaction trans)

        transactionHistory.add(trans);
    
public AddressgetAddress()

        return address;
    
public java.lang.StringgetEmail()

        return email;
    
public java.lang.StringgetFirstName()

        return firstName;
    
public java.lang.StringgetLastName()

        return lastName;
    
public java.lang.StringgetPhone()

        return phone;
    
public java.util.SetgetRentals()

        return Collections.unmodifiableSet(currentRentals);
    
public java.util.ListgetTransactionHistory()

        return Collections.unmodifiableList(transactionHistory);