• 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/tuple/
1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2002,2008 Oracle.  All rights reserved.
5 *
6 * $Id: Supplier.java,v 12.7 2008/01/08 20:58:31 bostic Exp $
7 */
8
9package collections.ship.tuple;
10
11/**
12 * A Supplier represents the combined key/data pair for a supplier entity.
13 *
14 * <p> In this sample, Supplier is created from the stored key/data entry
15 * using a SerialSerialBinding.  See {@link SampleViews.SupplierBinding} for
16 * details.  Since this class is not used directly for data storage, it does
17 * not need to be Serializable. </p>
18 *
19 * @author Mark Hayes
20 */
21public class Supplier {
22
23    private String number;
24    private String name;
25    private int status;
26    private String city;
27
28    public Supplier(String number, String name, int status, String city) {
29
30        this.number = number;
31        this.name = name;
32        this.status = status;
33        this.city = city;
34    }
35
36    public final String getNumber() {
37
38        return number;
39    }
40
41    public final String getName() {
42
43        return name;
44    }
45
46    public final int getStatus() {
47
48        return status;
49    }
50
51    public final String getCity() {
52
53        return city;
54    }
55
56    public String toString() {
57
58        return "[Supplier: number=" + number +
59               " name=" + name +
60               " status=" + status +
61               " city=" + city + ']';
62    }
63}
64