Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

Shipment.java

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 2002-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: Shipment.java,v 12.2 2005/06/16 20:22:27 bostic Exp $
00008  */
00009 
00010 package collections.ship.entity;
00011 
00022 public class Shipment {
00023 
00024     private String partNumber;
00025     private String supplierNumber;
00026     private int quantity;
00027 
00028     public Shipment(String partNumber, String supplierNumber, int quantity) {
00029 
00030         this.partNumber = partNumber;
00031         this.supplierNumber = supplierNumber;
00032         this.quantity = quantity;
00033     }
00034 
00035     public final String getPartNumber() {
00036 
00037         return partNumber;
00038     }
00039 
00040     public final String getSupplierNumber() {
00041 
00042         return supplierNumber;
00043     }
00044 
00045     public final int getQuantity() {
00046 
00047         return quantity;
00048     }
00049 
00050     public String toString() {
00051 
00052         return "[Shipment: part=" + partNumber +
00053                 " supplier=" + supplierNumber +
00054                 " quantity=" + quantity + ']';
00055     }
00056 }

Generated on Sun Dec 25 12:14:27 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2