Interface AddressIterator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Checks if there is a next address in the iteration.
      Address next()
      Get the next address.
      • Methods inherited from interface java.lang.Iterable

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

        forEachRemaining, remove
    • Method Detail

      • next

        Address next()
        Get the next address.

        NOTE: This deviates from the standard Iterator interface by returning null instead of throwing an exception.

        Specified by:
        next in interface java.util.Iterator<Address>
        Returns:
        the next address in the iteration.
      • hasNext

        boolean hasNext()
        Checks if there is a next address in the iteration.
        Specified by:
        hasNext in interface java.util.Iterator<Address>
        Returns:
        true if there is a next address.