Package Summary  Overview Summary

class:BeanContextSupport.BCSIterator [NONE]

  • 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:hasNext() [NONE]

  • 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

method:next() [NONE]

  • 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

method:remove() [NONE]

  • remove

    public void remove()
    Description copied from interface: Iterator
    Removes from the underlying collection the last element returned by this iterator (optional operation). This method can be called only once per call to Iterator.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, unless an overriding class has specified a concurrent modification policy.

    The behavior of an iterator is unspecified if this method is called after a call to the forEachRemaining method.

    Specified by:
    remove in interface Iterator<Object>

© 2019 Oracle Corporation and/or its affiliates