Interface HeaderIterator

All Superinterfaces:
Iterator
All Known Implementing Classes:
BasicHeaderIterator, BasicListHeaderIterator

public interface HeaderIterator
extends Iterator
A type-safe iterator for Header objects.
Version:
$Revision: 581981 $
  • Method Summary

    Modifier and Type Method Description
    boolean hasNext()
    Indicates whether there is another header in this iteration.
    Header nextHeader()
    Obtains the next header from this iteration.

    Methods inherited from interface java.util.Iterator

    next, remove
  • Method Details

    • hasNext

      boolean hasNext()
      Indicates whether there is another header in this iteration.
      Specified by:
      hasNext in interface Iterator
      Returns:
      true if there is another header, false otherwise
      See Also:
      Iterator.next()
    • nextHeader

      Header nextHeader()
      Obtains the next header from this iteration. This method should only be called while hasNext is true.
      Returns:
      the next header in this iteration