01: /*
02: @COPYRIGHT@
03: */
04: package demo.inventory;
05:
06: public class Department {
07: private final String code;
08: private final String name;
09: private final Product[] products;
10:
11: public Department(final String c, final String n, final Product[] p) {
12: code = c;
13: name = n;
14: products = p;
15: }
16:
17: public final String getCode() {
18: return code;
19: }
20:
21: public final String getName() {
22: return name;
23: }
24:
25: public final Product[] getProducts() {
26: return products;
27: }
28: }
|