|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.pivot.impl.calc.SumCountContext
public class SumCountContext
The most commonly used context including SUM, COUNT and COUNT_NUMBER aggregation.
Field Summary | |
---|---|
protected int |
_count
|
protected int |
_numCount
|
protected Numbers.MixedTypedNumber |
_sum
|
static ContextFactory<SumCountContext> |
FACTORY
|
Constructor Summary | |
---|---|
SumCountContext()
|
Method Summary | |
---|---|
void |
add(java.lang.Object item)
Add an item into the aggregation. |
int |
getCount()
Retrieve COUNT, which includes the count of non-number objects. |
int |
getNumberCount()
Retrieve NUMBER COUNT, which excludes the count of non-number objects. |
java.lang.Number |
getSum()
Retrieve SUM. |
void |
merge(SumCountContext 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 _sum
protected int _numCount
protected int _count
public static final ContextFactory<SumCountContext> FACTORY
Constructor Detail |
---|
public SumCountContext()
Method Detail |
---|
public void add(java.lang.Object item)
Context
add
in interface Context<SumCountContext>
public void merge(SumCountContext ctx)
Context
merge
in interface Context<SumCountContext>
public int getCount()
public int getNumberCount()
public java.lang.Number getSum()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |