Class BasicHeaderIterator

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

    public class BasicHeaderIterator
    extends java.lang.Object
    implements java.util.Iterator<Header>
    Iterator of Headers.
    Since:
    4.0
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicHeaderIterator​(Header[] headers, java.lang.String name)
      Creates a new header iterator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      Header next()
      Obtains the next header from this iteration.
      void remove()
      Removing headers is not supported.
      • 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

      • BasicHeaderIterator

        public BasicHeaderIterator​(Header[] headers,
                                   java.lang.String name)
        Creates a new header iterator.
        Parameters:
        headers - an array of headers over which to iterate
        name - the name of the headers over which to iterate, or null for any
    • Method Detail

      • hasNext

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

        public Header next()
                    throws java.util.NoSuchElementException
        Obtains the next header from this iteration.
        Specified by:
        next in interface java.util.Iterator<Header>
        Returns:
        the next header in this iteration
        Throws:
        java.util.NoSuchElementException - if there are no more headers
      • remove

        public void remove()
                    throws java.lang.UnsupportedOperationException
        Removing headers is not supported.
        Specified by:
        remove in interface java.util.Iterator<Header>
        Throws:
        java.lang.UnsupportedOperationException - always