|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Aggregator
Maintains aggregation state applying values as entering and leaving the state.
Implementations must also act as a factory for further independent copies of aggregation states such that new aggregation state holders and be created from a prototype.
Method Summary | |
---|---|
void |
enter(Object value)
Apply the value as entering aggregation (entering window). |
Object |
getValue()
Returns the current value held. |
Class |
getValueType()
Returns the type of the current value. |
void |
leave(Object value)
Apply the value as leaving aggregation (leaving window). |
Aggregator |
newAggregator()
Make a new, initalized aggregation state. |
Method Detail |
---|
void enter(Object value)
The value can be null since 'null' values may be counted as unique separate values.
value
- to add to aggregatevoid leave(Object value)
The value can be null since 'null' values may be counted as unique separate values.
value
- to remove from aggregateObject getValue()
Class getValueType()
Aggregator newAggregator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |