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

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