Package org.zkoss.pivot.impl.calc
Class MinMaxContext
java.lang.Object
org.zkoss.pivot.impl.calc.MinMaxContext
- All Implemented Interfaces:
Context<MinMaxContext>
The context that keeps track of the MAX and MIN value of the items.
- Author:
- simonpai
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Numbers.MixedTypedNumberprotected Numbers.MixedTypedNumberstatic final ContextFactory<MinMaxContext> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_max
-
_min
-
FACTORY
-
-
Constructor Details
-
MinMaxContext
public MinMaxContext()
-
-
Method Details
-
add
Description copied from interface:ContextAdd an item into the aggregation.- Specified by:
addin interfaceContext<MinMaxContext>
-
merge
Description copied from interface:ContextMerge from another context of the same type.- Specified by:
mergein interfaceContext<MinMaxContext>
-
getMax
Retrieve MAX. -
getMin
Retrieve MIN.
-