public interface AccumulateFunction<C extends Serializable> extends Externalizable
Modifier and Type | Method and Description |
---|---|
void |
accumulate(C context,
Object value)
Executes the accumulation action
|
C |
createContext()
Creates and returns a new context object
|
Object |
getResult(C context) |
Class<?> |
getResultType() |
void |
init(C context)
Initializes the accumulator
|
void |
reverse(C context,
Object value)
Reverses the accumulation action
|
boolean |
supportsReverse() |
readExternal, writeExternal
C createContext()
void init(C context) throws Exception
context
- never nullException
void accumulate(C context, Object value)
context
- never nullvalue
- void reverse(C context, Object value) throws Exception
context
- never nullvalue
- Exception
Object getResult(C context) throws Exception
Exception
boolean supportsReverse()
Class<?> getResultType()
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.