Knowledge API Legacy5 Adapter 6.2.0.Final

org.drools.impl.adapters
Class AccumulateFunctionAdapter

java.lang.Object
  extended by org.drools.impl.adapters.AccumulateFunctionAdapter
All Implemented Interfaces:
Externalizable, Serializable, org.kie.api.runtime.rule.AccumulateFunction

public class AccumulateFunctionAdapter
extends Object
implements org.kie.api.runtime.rule.AccumulateFunction

See Also:
Serialized Form

Constructor Summary
AccumulateFunctionAdapter(AccumulateFunction delegate)
           
 
Method Summary
 void accumulate(Serializable context, Object value)
           
 Serializable createContext()
           
 boolean equals(Object obj)
           
 Object getResult(Serializable context)
           
 Class<?> getResultType()
           
 int hashCode()
           
 void init(Serializable context)
           
 void readExternal(ObjectInput in)
           
 void reverse(Serializable context, Object value)
           
 boolean supportsReverse()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccumulateFunctionAdapter

public AccumulateFunctionAdapter(AccumulateFunction delegate)
Method Detail

createContext

public Serializable createContext()
Specified by:
createContext in interface org.kie.api.runtime.rule.AccumulateFunction

init

public void init(Serializable context)
          throws Exception
Specified by:
init in interface org.kie.api.runtime.rule.AccumulateFunction
Throws:
Exception

accumulate

public void accumulate(Serializable context,
                       Object value)
Specified by:
accumulate in interface org.kie.api.runtime.rule.AccumulateFunction

reverse

public void reverse(Serializable context,
                    Object value)
             throws Exception
Specified by:
reverse in interface org.kie.api.runtime.rule.AccumulateFunction
Throws:
Exception

getResult

public Object getResult(Serializable context)
                 throws Exception
Specified by:
getResult in interface org.kie.api.runtime.rule.AccumulateFunction
Throws:
Exception

supportsReverse

public boolean supportsReverse()
Specified by:
supportsReverse in interface org.kie.api.runtime.rule.AccumulateFunction

getResultType

public Class<?> getResultType()
Specified by:
getResultType in interface org.kie.api.runtime.rule.AccumulateFunction

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Knowledge API Legacy5 Adapter 6.2.0.Final

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.