org.openbp.common.listener
Class ListenerSupport.ListenerIterator

java.lang.Object
  extended by org.openbp.common.listener.ListenerSupport.ListenerIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
ListenerSupport

public class ListenerSupport.ListenerIterator
extends java.lang.Object
implements java.util.Iterator

Convenience class that can serve as an empty Iterator.


Constructor Summary
ListenerSupport.ListenerIterator(java.lang.Class listenerClass)
          Constructor.
 
Method Summary
 boolean hasNext()
          Implementation of Iterator interface.
 java.lang.Object next()
          Implementation of the Iterator interface.
 void remove()
          Implementation of the Iterator interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerSupport.ListenerIterator

public ListenerSupport.ListenerIterator(java.lang.Class listenerClass)
Constructor.

Parameters:
listenerClass - Listener class
Method Detail

hasNext

public boolean hasNext()
Implementation of Iterator interface.

Specified by:
hasNext in interface java.util.Iterator
Returns:
Always false

next

public java.lang.Object next()
Implementation of the Iterator interface.

Specified by:
next in interface java.util.Iterator
Returns:
Nothing, throws a NoSuchElementException instead

remove

public void remove()
Implementation of the Iterator interface. Always throws an IllegalStateException.

Specified by:
remove in interface java.util.Iterator


Copyright © 2011. All Rights Reserved.