1 8 9 package collections.ship.tuple; 10 11 import java.io.Serializable ; 12 13 23 public class PartData implements Serializable { 24 25 private String name; 26 private String color; 27 private Weight weight; 28 private String city; 29 30 public PartData(String name, String color, Weight weight, String city) { 31 32 this.name = name; 33 this.color = color; 34 this.weight = weight; 35 this.city = city; 36 } 37 38 public final String getName() { 39 40 return name; 41 } 42 43 public final String getColor() { 44 45 return color; 46 } 47 48 public final Weight getWeight() { 49 50 return weight; 51 } 52 53 public final String getCity() { 54 55 return city; 56 } 57 58 public String toString() { 59 60 return "[PartData: name=" + name + 61 " color=" + color + 62 " weight=" + weight + 63 " city=" + city + ']'; 64 } 65 } 66 | Popular Tags |