public class MaxAccumulateFunction extends Object implements org.kie.api.runtime.rule.AccumulateFunction
Modifier and Type | Class and Description |
---|---|
protected static class |
MaxAccumulateFunction.MaxData |
Constructor and Description |
---|
MaxAccumulateFunction() |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(Serializable context,
Object value) |
Serializable |
createContext() |
Object |
getResult(Serializable context) |
Class<?> |
getResultType() |
void |
init(Serializable context) |
void |
readExternal(ObjectInput in) |
void |
reverse(Serializable context,
Object value) |
boolean |
supportsReverse() |
void |
writeExternal(ObjectOutput out) |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public Serializable createContext()
createContext
in interface org.kie.api.runtime.rule.AccumulateFunction
public void init(Serializable context) throws Exception
init
in interface org.kie.api.runtime.rule.AccumulateFunction
Exception
public void accumulate(Serializable context, Object value)
accumulate
in interface org.kie.api.runtime.rule.AccumulateFunction
public void reverse(Serializable context, Object value) throws Exception
reverse
in interface org.kie.api.runtime.rule.AccumulateFunction
Exception
public Object getResult(Serializable context) throws Exception
getResult
in interface org.kie.api.runtime.rule.AccumulateFunction
Exception
public boolean supportsReverse()
supportsReverse
in interface org.kie.api.runtime.rule.AccumulateFunction
public Class<?> getResultType()
getResultType
in interface org.kie.api.runtime.rule.AccumulateFunction
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.