1 8 9 package collections.ship.entity; 10 11 21 public class Part { 22 23 private String number; 24 private String name; 25 private String color; 26 private Weight weight; 27 private String city; 28 29 public Part(String number, String name, String color, Weight weight, 30 String city) { 31 32 this.number = number; 33 this.name = name; 34 this.color = color; 35 this.weight = weight; 36 this.city = city; 37 } 38 39 public final String getNumber() { 40 41 return number; 42 } 43 44 public final String getName() { 45 46 return name; 47 } 48 49 public final String getColor() { 50 51 return color; 52 } 53 54 public final Weight getWeight() { 55 56 return weight; 57 } 58 59 public final String getCity() { 60 61 return city; 62 } 63 64 public String toString() { 65 66 return "[Part: number=" + number + 67 " name=" + name + 68 " color=" + color + 69 " weight=" + weight + 70 " city=" + city + ']'; 71 } 72 } 73 | Popular Tags |