Package org.zkoss.pivot.impl.calc
Class ProductContext
- java.lang.Object
-
- org.zkoss.pivot.impl.calc.ProductContext
-
- All Implemented Interfaces:
Context<ProductContext>
public class ProductContext extends Object implements Context<ProductContext>
- Author:
- simonpai
-
-
Field Summary
Fields Modifier and Type Field Description protected Numbers.MixedTypedNumber
_product
static ContextFactory<ProductContext>
FACTORY
-
Constructor Summary
Constructors Constructor Description ProductContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Object item)
Add an item into the aggregation.Number
getProduct()
Retrieve PRODUCT.void
merge(ProductContext ctx)
Merge from another context of the same type.
-
-
-
Field Detail
-
_product
protected Numbers.MixedTypedNumber _product
-
FACTORY
public static final ContextFactory<ProductContext> FACTORY
-
-
Method Detail
-
add
public void add(Object item)
Description copied from interface:Context
Add an item into the aggregation.- Specified by:
add
in interfaceContext<ProductContext>
-
merge
public void merge(ProductContext ctx)
Description copied from interface:Context
Merge from another context of the same type.- Specified by:
merge
in interfaceContext<ProductContext>
-
getProduct
public Number getProduct()
Retrieve PRODUCT.
-
-