01 /**
02 *
03 * All content copyright (c) 2003-2008 Terracotta, Inc.,
04 * except as may otherwise be noted in a separate copyright notice.
05 * All rights reserved.
06 *
07 */
08 package demo.inventory;
09
10 /**
11 * Description of the Class
12 *
13 *@author Terracotta, Inc.
14 */
15 public class Department {
16 private final String code;
17 private final String name;
18 private final Product[] products;
19
20 public Department(final String c, final String n, final Product[] p) {
21 code = c;
22 name = n;
23 products = p;
24 }
25
26 public final String getCode() {
27 return code;
28 }
29
30 public final String getName() {
31 return name;
32 }
33
34 public final Product[] getProducts() {
35 return products;
36 }
37 }
|