info.jedi.net
Class HandlerStackIterator

java.lang.Object
  |
  +--info.jedi.net.HandlerStackIterator

public class HandlerStackIterator
extends java.lang.Object

Provides functionality to move up and down a HandlerStack.


Method Summary
 HandlerStackIterator bottom()
          Moves this iterator to the bottom of the stack
 PacketHandler current()
          Returns the current PacketHandler.
 HandlerStackIterator current(PacketHandler newCurrentHandler)
          Sets the iterator to a particular packet handler.
 HandlerStackIterator down()
          Moves this iterator one handler down the stack.
 HandlerStackIterator top()
          Moves this iterator to the top of the stack
 HandlerStackIterator up()
          Moves this iterator one handler up the stack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

top

public HandlerStackIterator top()
Moves this iterator to the top of the stack

bottom

public HandlerStackIterator bottom()
Moves this iterator to the bottom of the stack

up

public HandlerStackIterator up()
Moves this iterator one handler up the stack. It returns this object, or null if there is no handler above the current one

down

public HandlerStackIterator down()
Moves this iterator one handler down the stack. It returns this object, or null if there is no handler below the current one

current

public PacketHandler current()
Returns the current PacketHandler. If this iterator is currently at an invalid index it will return null.

current

public HandlerStackIterator current(PacketHandler newCurrentHandler)
Sets the iterator to a particular packet handler. The iterator will scan linearly through the HandlerStack, starting at the bottom, until it comes to the correct packet handler.
Returns:
null if the packet handler is not in the stack, otherwise the current object.