• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/db-4.7.25.NC/examples_java/src/collections/ship/sentity/
1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2002,2008 Oracle.  All rights reserved.
5 *
6 * $Id: PartKey.java,v 12.7 2008/01/08 20:58:31 bostic Exp $
7 */
8
9package collections.ship.sentity;
10
11/**
12 * A PartKey serves as the key in the key/data pair for a part entity.
13 *
14 * <p> In this sample, PartKey is bound to the key's tuple storage entry using
15 * a TupleBinding.  Because it is not used directly as storage data, it does
16 * not need to be Serializable. </p>
17 *
18 * @author Mark Hayes
19 */
20public class PartKey {
21
22    private String number;
23
24    public PartKey(String number) {
25
26        this.number = number;
27    }
28
29    public final String getNumber() {
30
31        return number;
32    }
33
34    public String toString() {
35
36        return "[PartKey: number=" + number + ']';
37    }
38}
39