Module java.desktop

Class BeanContextSupport.BCSIterator

java.lang.Object
java.beans.beancontext.BeanContextSupport.BCSIterator
All Implemented Interfaces:
Iterator<Object>
Enclosing class:
BeanContextSupport

protected static final class BeanContextSupport.BCSIterator extends Object implements Iterator<Object>
protected final subclass that encapsulates an iterator but implements a noop remove() method.
  • Method Details

    • hasNext

      public boolean hasNext()
      Description copied from interface: Iterator
      Returns true if the iteration has more elements. (In other words, returns true if Iterator.next() would return an element rather than throwing an exception.)
      Specified by:
      hasNext in interface Iterator<Object>
      Returns:
      true if the iteration has more elements
    • next

      public Object next()
      Description copied from interface: Iterator
      Returns the next element in the iteration.
      Specified by:
      next in interface Iterator<Object>
      Returns:
      the next element in the iteration