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

TokenStack - JBoss RULES 3.0.6 API 英文版文档


org.drools.leaps.util
Class TokenStack

java.lang.Object
  extended by org.drools.leaps.util.TokenStack
All Implemented Interfaces:
java.io.Serializable

public class TokenStack
extends java.lang.Object
implements java.io.Serializable

This class follows java.util.Stack interface but accounts for remove( object ) functionallity needed by leaps

See Also:
Serialized Form

Field Summary
protected  TableRecord tailRecord
           
 
Constructor Summary
TokenStack()
           
 
Method Summary
 boolean empty()
           
 java.util.Iterator iterator()
           
 java.lang.Object peek()
           
 java.lang.Object pop()
           
 java.lang.Object push(java.lang.Object item)
           
 void remove(long factId)
          Removes object from the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tailRecord

protected TableRecord tailRecord
Constructor Detail

TokenStack

public TokenStack()
Method Detail

empty

public boolean empty()

peek

public java.lang.Object peek()

pop

public java.lang.Object pop()

remove

public void remove(long factId)
Removes object from the table

Parameters:
object - to remove from the table

push

public java.lang.Object push(java.lang.Object item)

iterator

public java.util.Iterator iterator()