KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > collections > ship > tuple > SupplierKey


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: SupplierKey.java,v 1.10 2006/10/30 21:14:03 bostic Exp $
7  */

8
9 package collections.ship.tuple;
10
11 /**
12  * A SupplierKey serves as the key in the key/data pair for a supplier entity.
13  *
14  * <p> In this sample, SupplierKey is bound to the key's tuple storage entry
15  * using a TupleBinding. Because it is not used directly as storage data, it
16  * does not need to be Serializable. </p>
17  *
18  * @author Mark Hayes
19  */

20 public class SupplierKey {
21
22     private String JavaDoc number;
23
24     public SupplierKey(String JavaDoc number) {
25
26         this.number = number;
27     }
28
29     public final String JavaDoc getNumber() {
30
31         return number;
32     }
33
34     public String JavaDoc toString() {
35
36         return "[SupplierKey: number=" + number + ']';
37     }
38 }
39
Popular Tags