FileDocCategorySizeDatePackage
Customer.javaAPI DocExample1248Sun Apr 24 09:01:16 BST 2005com.springbook

Customer

public class Customer extends Object

Fields Summary
private int
custId
private String
firstName
private String
lastName
private Set
reservations
Constructors Summary
public Customer()

    
public Customer(int custId, String firstName, String lastName)

        this.custId = custId;
        this.firstName = firstName;
        this.lastName = lastName;
    
Methods Summary
public intgetCustId()

        return custId;
    
public java.lang.StringgetFirstName()

        return firstName;
    
public java.lang.StringgetLastName()

        return lastName;
    
public java.util.SetgetReservations()

        return reservations;
    
public voidsetCustId(int custId)

        this.custId = custId;
    
public voidsetFirstName(java.lang.String firstName)

        this.firstName = firstName;
    
public voidsetLastName(java.lang.String lastName)

        this.lastName = lastName;
    
public voidsetReservations(java.util.Set reservations)

        this.reservations = reservations;
    
public java.lang.StringtoString()

        return "Customer : " +
                "custId -- " + custId +
                "\n: firstName -- " + firstName +
                "\n: lastName -- " + lastName +
                ".\n";