org.drools.leaps.util
Class TokenStack

java.lang.Object
  extended byorg.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


push

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

iterator

public java.util.Iterator iterator()