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