00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 package collections.ship.basic;
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 }