Packagesekati.collections
Classpublic class StackIterator
ImplementsIDestructiveIterator, IIterator

Stack based Iterator



Public Methods
 MethodDefined by
  
StackIterator Constructor
StackIterator
  
hasNext():Boolean
Is there another item in the collection to move to.
StackIterator
  
next():Object
Move to the next item and return it.
StackIterator
  
peek():Object
Returns the next item in the collection without moving to it.
StackIterator
Constructor detail
StackIterator()constructor
public function StackIterator(stack:IStack)

StackIterator Constructor

Parameters
stack:IStack
Method detail
hasNext()method
public function hasNext():Boolean

Is there another item in the collection to move to.

Returns
Boolean
next()method 
public function next():Object

Move to the next item and return it.

Returns
Object
peek()method 
public function peek():Object

Returns the next item in the collection without moving to it.

Returns
Object