All Packages Class Hierarchy This Package Previous Next Index
Class orderprocessing.Order
java.lang.Object
|
+----orderprocessing.Order
- public class Order
- extends java.lang.Object
- implements java.io.Serializable
This class represents a single order from a single customer.
Note that this class implements the Immutable Object design pattern as it has
no mutators for any of its instance variables.
-
Order(Customer, Vector, Date)
- Create an Order for a particular customer and a sequence of items ordered
-
display()
-
-
key()
- Return the order number
-
toString()
-
-
what()
-
-
when()
-
-
who()
-
Order
public Order(orderprocessing.Customer who,
java.util.Vector what,
java.util.Date when)
- Create an Order for a particular customer and a sequence of items ordered
- Parameters:
- who - The customer ordering these items
- what - A vector of OrderItems representing the items ordered
- when - The date that this order was placed
who
public orderprocessing.Customer who()
what
public java.util.Enumeration what()
when
public java.util.Date when()
key
public long key()
- Return the order number
display
public void display()
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
All Packages Class Hierarchy This Package Previous Next Index