Building Parsers with Java

sjm.examples.chips
Class Customer

java.lang.Object
  |
  +--sjm.examples.chips.Customer

public class Customer
extends java.lang.Object

A customer has an ID, and a last and first name.


Field Summary
protected  java.lang.Integer customerID
           
protected  java.lang.String firstName
           
protected  java.lang.String lastName
           
 
Constructor Summary
Customer(java.lang.Integer customerID, java.lang.String lastName, java.lang.String firstName)
          Create a customer given his or her ID, last name, and first name.
Customer(int customerID, java.lang.String lastName, java.lang.String firstName)
          Create a customer given his or her ID, last name, and first name.
 
Method Summary
 java.lang.Integer getCustomerID()
          Return the ID of this customer.
 java.lang.String getFirstName()
          Return the first name of this customer.
 java.lang.String getLastName()
          Return the last name of this customer.
 java.lang.String toString()
          Return a textual description of this customer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

customerID

protected java.lang.Integer customerID

lastName

protected java.lang.String lastName

firstName

protected java.lang.String firstName
Constructor Detail

Customer

public Customer(int customerID,
                java.lang.String lastName,
                java.lang.String firstName)
Create a customer given his or her ID, last name, and first name.

Customer

public Customer(java.lang.Integer customerID,
                java.lang.String lastName,
                java.lang.String firstName)
Create a customer given his or her ID, last name, and first name.
Method Detail

getCustomerID

public java.lang.Integer getCustomerID()
Return the ID of this customer.
Returns:
the ID of this customer

getFirstName

public java.lang.String getFirstName()
Return the first name of this customer.
Returns:
the first name of this customer

getLastName

public java.lang.String getLastName()
Return the last name of this customer.
Returns:
the last name of this customer

toString

public java.lang.String toString()
Return a textual description of this customer.
Overrides:
toString in class java.lang.Object
Returns:
a textual description of this customer

by Steve Metsker