|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.pivot.impl.calc.MinMaxContext
public class MinMaxContext
The context that keeps track of the MAX and MIN value of the items.
Field Summary | |
---|---|
protected Numbers.MixedTypedNumber |
_max
|
protected Numbers.MixedTypedNumber |
_min
|
static ContextFactory<MinMaxContext> |
FACTORY
|
Constructor Summary | |
---|---|
MinMaxContext()
|
Method Summary | |
---|---|
void |
add(java.lang.Object item)
Add an item into the aggregation. |
java.lang.Number |
getMax()
Retrieve MAX. |
java.lang.Number |
getMin()
Retrieve MIN. |
void |
merge(MinMaxContext ctx)
Merge from another context of the same type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Numbers.MixedTypedNumber _max
protected Numbers.MixedTypedNumber _min
public static final ContextFactory<MinMaxContext> FACTORY
Constructor Detail |
---|
public MinMaxContext()
Method Detail |
---|
public void add(java.lang.Object item)
Context
add
in interface Context<MinMaxContext>
public void merge(MinMaxContext ctx)
Context
merge
in interface Context<MinMaxContext>
public java.lang.Number getMax()
public java.lang.Number getMin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |