1 8 9 package collections.ship.sentity; 10 11 import java.io.Serializable ; 12 13 30 public class Part implements Serializable { 31 32 private transient String number; 33 private String name; 34 private String color; 35 private Weight weight; 36 private String city; 37 38 public Part(String number, String name, String color, Weight weight, 39 String city) { 40 41 this.number = number; 42 this.name = name; 43 this.color = color; 44 this.weight = weight; 45 this.city = city; 46 } 47 48 52 final void setKey(String number) { 53 54 this.number = number; 55 } 56 57 public final String getNumber() { 58 59 return number; 60 } 61 62 public final String getName() { 63 64 return name; 65 } 66 67 public final String getColor() { 68 69 return color; 70 } 71 72 public final Weight getWeight() { 73 74 return weight; 75 } 76 77 public final String getCity() { 78 79 return city; 80 } 81 82 public String toString() { 83 84 return "[Part: number=" + number + 85 " name=" + name + 86 " color=" + color + 87 " weight=" + weight + 88 " city=" + city + ']'; 89 } 90 } 91 | Popular Tags |