java.beans.beancontext
Class BeanContextSupport.BCSIterator

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.beans.beancontext.BeanContextSupport.BCSIterator
All Implemented Interfaces:
Iterator sample code for java.util.Iterator definition code for java.util.Iterator
Enclosing class:
BeanContextSupport sample code for java.beans.beancontext.BeanContextSupport definition code for java.beans.beancontext.BeanContextSupport

protected static final class BeanContextSupport.BCSIterator
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Iterator sample code for java.util.Iterator definition code for java.util.Iterator

protected final subclass that encapsulates an iterator but implements a noop remove() method.


Method Summary
 boolean hasNext sample code for java.beans.beancontext.BeanContextSupport.BCSIterator.hasNext() definition code for java.beans.beancontext.BeanContextSupport.BCSIterator.hasNext() ()
          Returns true if the iteration has more elements.
 Object sample code for java.lang.Object definition code for java.lang.Object next sample code for java.beans.beancontext.BeanContextSupport.BCSIterator.next() definition code for java.beans.beancontext.BeanContextSupport.BCSIterator.next() ()
          Returns the next element in the iteration.
 void remove sample code for java.beans.beancontext.BeanContextSupport.BCSIterator.remove() definition code for java.beans.beancontext.BeanContextSupport.BCSIterator.remove() ()
          Removes from the underlying collection the last element returned by the iterator (optional operation).
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Method Detail

hasNext sample code for java.beans.beancontext.BeanContextSupport.BCSIterator.hasNext() definition code for java.beans.beancontext.BeanContextSupport.BCSIterator.hasNext()

public boolean hasNext()
Description copied from interface: Iterator sample code for java.util.Iterator.hasNext() definition code for java.util.Iterator.hasNext()
Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Specified by:
hasNext sample code for java.util.Iterator.hasNext() definition code for java.util.Iterator.hasNext() in interface Iterator sample code for java.util.Iterator definition code for java.util.Iterator
Returns:
true if the iterator has more elements.

next sample code for java.beans.beancontext.BeanContextSupport.BCSIterator.next() definition code for java.beans.beancontext.BeanContextSupport.BCSIterator.next()

public Object sample code for java.lang.Object definition code for java.lang.Object  next()
Description copied from interface: Iterator sample code for java.util.Iterator.next() definition code for java.util.Iterator.next()
Returns the next element in the iteration. Calling this method repeatedly until the Iterator.hasNext() sample code for java.util.Iterator.hasNext() definition code for java.util.Iterator.hasNext() method returns false will return each element in the underlying collection exactly once.

Specified by:
next sample code for java.util.Iterator.next() definition code for java.util.Iterator.next() in interface Iterator sample code for java.util.Iterator definition code for java.util.Iterator
Returns:
the next element in the iteration.

remove sample code for java.beans.beancontext.BeanContextSupport.BCSIterator.remove() definition code for java.beans.beancontext.BeanContextSupport.BCSIterator.remove()

public void remove()
Description copied from interface: Iterator sample code for java.util.Iterator.remove() definition code for java.util.Iterator.remove()
Removes from the underlying collection the last element returned by the iterator (optional operation). This method can be called only once per call to next. The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method.

Specified by:
remove sample code for java.util.Iterator.remove() definition code for java.util.Iterator.remove() in interface Iterator sample code for java.util.Iterator definition code for java.util.Iterator