Class NewsgroupIterator

  • All Implemented Interfaces:
    java.lang.Iterable<NewsgroupInfo>, java.util.Iterator<NewsgroupInfo>

    final class NewsgroupIterator
    extends java.lang.Object
    implements java.util.Iterator<NewsgroupInfo>, java.lang.Iterable<NewsgroupInfo>
    Class which wraps an Iterable<String> of raw newgroup information to generate an Iterable<NewsgroupInfo> of the parsed information.
    Since:
    3.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Iterator<java.lang.String> stringIterator  
    • Constructor Summary

      Constructors 
      Constructor Description
      NewsgroupIterator​(java.lang.Iterable<java.lang.String> iterableString)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      java.util.Iterator<NewsgroupInfo> iterator()  
      NewsgroupInfo 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.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • stringIterator

        private final java.util.Iterator<java.lang.String> stringIterator
    • Constructor Detail

      • NewsgroupIterator

        public NewsgroupIterator​(java.lang.Iterable<java.lang.String> iterableString)
    • Method Detail

      • hasNext

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

        public java.util.Iterator<NewsgroupInfo> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<NewsgroupInfo>
      • remove

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