站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 3.0.6 API 英文版文档

HashedObjectSinkList - JBoss RULES 3.0.6 API 英文版文档


org.drools.reteoo
Class HashedObjectSinkList

java.lang.Object
  extended by org.drools.reteoo.HashedObjectSinkList
All Implemented Interfaces:
java.io.Serializable, ObjectSinkList

public class HashedObjectSinkList
extends java.lang.Object
implements ObjectSinkList, java.io.Serializable

HashedObjectSinkList A hashed implementation for ObjectSinkList to use in nodes that do alpha node hashing

See Also:
Serialized Form

Constructor Summary
HashedObjectSinkList()
           
 
Method Summary
 boolean add(ObjectSink objectSink)
          Adds the given objectSink to the list
 boolean contains(ObjectSink objectSink)
          Returns true if the ObjectSinkList already contains the given object sink
 ObjectSink getLastObjectSink()
          Returns the last added object sink.
 java.util.List getObjectsAsList()
          Returns a list with all object sinks This may be an inneficient method to call, so we recomend using it only for tests and debug purposes Also, it returns an unmodifiable list to prevent misuse
 java.util.Iterator iterator()
          Iterates over all object Sinks
 java.util.Iterator iterator(WorkingMemory workingMemory, DefaultFactHandle handle)
          Iterates over all matching (in case of hashed list) object Sinks
 boolean remove(ObjectSink objectSink)
          Removes the given objectSink from the list
 int size()
          Returns the number of ObjectSinks in this list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashedObjectSinkList

public HashedObjectSinkList()
Method Detail

contains

public boolean contains(ObjectSink objectSink)
Description copied from interface: ObjectSinkList
Returns true if the ObjectSinkList already contains the given object sink

Specified by:
contains in interface ObjectSinkList
Returns:

add

public boolean add(ObjectSink objectSink)
Description copied from interface: ObjectSinkList
Adds the given objectSink to the list

Specified by:
add in interface ObjectSinkList
Returns:

remove

public boolean remove(ObjectSink objectSink)
Description copied from interface: ObjectSinkList
Removes the given objectSink from the list

Specified by:
remove in interface ObjectSinkList
Returns:

getLastObjectSink

public ObjectSink getLastObjectSink()
Description copied from interface: ObjectSinkList
Returns the last added object sink.

Specified by:
getLastObjectSink in interface ObjectSinkList
Returns:

iterator

public java.util.Iterator iterator(WorkingMemory workingMemory,
                                   DefaultFactHandle handle)
Description copied from interface: ObjectSinkList
Iterates over all matching (in case of hashed list) object Sinks

Specified by:
iterator in interface ObjectSinkList
Returns:

iterator

public java.util.Iterator iterator()
Description copied from interface: ObjectSinkList
Iterates over all object Sinks

Specified by:
iterator in interface ObjectSinkList
Returns:

getObjectsAsList

public java.util.List getObjectsAsList()
Description copied from interface: ObjectSinkList
Returns a list with all object sinks This may be an inneficient method to call, so we recomend using it only for tests and debug purposes Also, it returns an unmodifiable list to prevent misuse

Specified by:
getObjectsAsList in interface ObjectSinkList
Returns:

size

public int size()
Description copied from interface: ObjectSinkList
Returns the number of ObjectSinks in this list

Specified by:
size in interface ObjectSinkList
Returns: