Interface MutableObjectIterator<E>

    • Method Detail

      • next

        E next​(E reuse)
        throws IOException
        Gets the next element from the collection. The contents of that next element is put into the given reuse object, if the type is mutable.
        Parameters:
        reuse - The target object into which to place next element if E is mutable.
        Returns:
        The filled object or null if the iterator is exhausted.
        Throws:
        IOException - Thrown, if a problem occurred in the underlying I/O layer or in the serialization / deserialization logic
      • next

        E next()
        throws IOException
        Gets the next element from the collection. The iterator implementation must obtain a new instance.
        Returns:
        The object or null if the iterator is exhausted.
        Throws:
        IOException - Thrown, if a problem occurred in the underlying I/O layer or in the serialization / deserialization logic