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

PartData.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: PartData.java,v 12.2 2005/06/16 20:22:44 bostic Exp $
00008  */
00009 
00010 package collections.ship.tuple;
00011 
00012 import java.io.Serializable;
00013 
00024 public class PartData implements Serializable {
00025 
00026     private String name;
00027     private String color;
00028     private Weight weight;
00029     private String city;
00030 
00031     public PartData(String name, String color, Weight weight, String city) {
00032 
00033         this.name = name;
00034         this.color = color;
00035         this.weight = weight;
00036         this.city = city;
00037     }
00038 
00039     public final String getName() {
00040 
00041         return name;
00042     }
00043 
00044     public final String getColor() {
00045 
00046         return color;
00047     }
00048 
00049     public final Weight getWeight() {
00050 
00051         return weight;
00052     }
00053 
00054     public final String getCity() {
00055 
00056         return city;
00057     }
00058 
00059     public String toString() {
00060 
00061         return "[PartData: name=" + name +
00062             " color=" + color +
00063             " weight=" + weight +
00064             " city=" + city + ']';
00065     }
00066 }

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