Class MemberIterator

  • All Implemented Interfaces:
    java.util.Iterator<PLPInfo>

    public final class MemberIterator
    extends java.lang.Object
    implements java.util.Iterator<PLPInfo>
    An Iterator over all predecessors or successors of one PLPInfo.
    Since:
    23.07.2012
    Author:
    El-Sharkawy
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Iterator<PLPInfo> relatives  
    • Constructor Summary

      Constructors 
      Constructor Description
      MemberIterator​(java.util.Collection<java.lang.String> relatives)
      Sole constructor of this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      PLPInfo next()  
      void remove()  
      • 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
    • Field Detail

      • relatives

        private java.util.Iterator<PLPInfo> relatives
    • Constructor Detail

      • MemberIterator

        MemberIterator​(java.util.Collection<java.lang.String> relatives)
        Sole constructor of this class.
        Parameters:
        relatives - The IDs of all prede- or successors of the current project.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<PLPInfo>
      • next

        public PLPInfo next()
        Specified by:
        next in interface java.util.Iterator<PLPInfo>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<PLPInfo>