psdi.mbo

Class InternalIterator

  • java.lang.Object
    • psdi.mbo.InternalIterator
  • All Implemented Interfaces:
    java.io.Serializable, java.util.Iterator


    public class InternalIterator
    extends java.lang.Object
    implements java.util.Iterator, java.io.Serializable
    An internal iterator class that implements the Iterator interface to iterate over attributes based on an internal iterator. This iterator prevents removal of any element from the collection.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      InternalIterator(java.util.Iterator iterator) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean hasNext()
      Returns true if the iteration has more elements.
      java.lang.Object next()
      Returns the next element in the iteration.
      void remove()
      Unsupported operation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • InternalIterator

        public InternalIterator(java.util.Iterator iterator)
    • Method Detail

      • hasNext

        public boolean 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 in interface java.util.Iterator
      • next

        public java.lang.Object next()
        Returns the next element in the iteration.
        Specified by:
        next in interface java.util.Iterator
      • remove

        public void remove()
        Unsupported operation.
        Specified by:
        remove in interface java.util.Iterator
        Throws:
        java.lang.UnsupportedOperationException - when called.