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.index;
11 import java.io.Serializable;
14 * A SupplierKey serves as the key in the key/data pair for a supplier entity.
16 * <p> In this sample, SupplierKey is used both as the storage data for the key
17 * as well as the object binding to the key. Because it is used directly as
18 * storage data using serial format, it must be Serializable. </p>
22 public class SupplierKey implements Serializable {
24 private String number;
26 public SupplierKey(String number) {
31 public final String getNumber() {
36 public String toString() {
38 return "[SupplierKey: number=" + number + ']';