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_productstatic ContextFactory<ProductContext>FACTORY
-
Constructor Summary
Constructors Constructor Description ProductContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Object item)Add an item into the aggregation.NumbergetProduct()Retrieve PRODUCT.voidmerge(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:ContextAdd an item into the aggregation.- Specified by:
addin interfaceContext<ProductContext>
-
merge
public void merge(ProductContext ctx)
Description copied from interface:ContextMerge from another context of the same type.- Specified by:
mergein interfaceContext<ProductContext>
-
getProduct
public Number getProduct()
Retrieve PRODUCT.
-
-