2 * See the file LICENSE for redistribution information.
4 * Copyright (c) 2002, 2012 Oracle and/or its affiliates. All rights reserved.
9 package collections.ship.tuple;
11 import java.io.Serializable;
14 * A PartData serves as the value in the key/value pair for a part entity.
16 * <p> In this sample, PartData is used only as the storage data for the
17 * value, while the Part object is used as the value's object representation.
18 * Because it is used directly as storage data using serial format, it must be
23 public class PartData implements Serializable {
27 private Weight weight;
30 public PartData(String name, String color, Weight weight, String city) {
38 public final String getName() {
43 public final String getColor() {
48 public final Weight getWeight() {
53 public final String getCity() {
58 public String toString() {
60 return "[PartData: name=" + name +
63 " city=" + city + ']';