]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /** @file\r |
2 | SkuInstance class.\r | |
3 | \r | |
4 | Sku instance contains ID and value, A pcd token maybe contains more than one Sku instance.\r | |
5 | \r | |
6 | Copyright (c) 2006, Intel Corporation\r | |
7 | All rights reserved. This program and the accompanying materials\r | |
8 | are licensed and made available under the terms and conditions of the BSD License\r | |
9 | which accompanies this distribution. The full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | \r | |
15 | **/ \r | |
16 | package org.tianocore.build.pcd.entity;\r | |
17 | \r | |
18 | /** Sku instance contains ID and value, A pcd token maybe contains more than one Sku instance.\r | |
19 | **/\r | |
20 | public class SkuInstance {\r | |
21 | ///\r | |
22 | /// The id number of this SKU instance\r | |
23 | ///\r | |
6ff7a41c | 24 | public int id;\r |
878ddf1f | 25 | ///\r |
26 | /// The value of this SKU instance\r | |
27 | ///\r | |
6ff7a41c | 28 | public DynamicTokenValue value;\r |
878ddf1f | 29 | \r |
30 | /**\r | |
31 | Constructure function\r | |
32 | \r | |
33 | @param id sku id \r | |
34 | @param value sku value for this id.\r | |
35 | **/\r | |
6ff7a41c | 36 | public SkuInstance(int id, DynamicTokenValue value) {\r |
878ddf1f | 37 | this.id = id;\r |
38 | this.value = value;\r | |
39 | }\r | |
6ff7a41c | 40 | \r |
41 | public SkuInstance() {\r | |
42 | this.id = 0;\r | |
43 | this.value = new DynamicTokenValue();\r | |
44 | }\r | |
878ddf1f | 45 | }\r |