de.esprit.netsuite.rtask

## Class RemoteTaskEventIterator

- java.lang.Object
- - de.esprit.netsuite.rtask.RemoteTaskEventIterator

- All Implemented Interfaces:
    java.util.Iterator<RemoteTaskEvent>

      public final class RemoteTaskEventIterator
      extends java.lang.Object
      implements java.util.Iterator<RemoteTaskEvent>

  This Iterator steps through the incoming `RemoteTaskEvent`s until it receives a FINISHED call or the `close()` method is invoked.
  Author:
    Rainer Buesch

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RemoteTaskEventIterator(RemoteTaskEventQueue queue)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` Needs only be called if the iteration is broken before reaching the FINISHED event.
    `boolean` | `hasNext()`
    `RemoteTaskEvent` | `next()`
    `void` | `remove()` Just implements `Iterator` but does nothing

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RemoteTaskEventIterator

          public RemoteTaskEventIterator(RemoteTaskEventQueue queue)

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

      Specified by:
        `hasNext` in interface `java.util.Iterator<RemoteTaskEvent>`

    - #### next

          public RemoteTaskEvent next()

      Specified by:
        `next` in interface `java.util.Iterator<RemoteTaskEvent>`

    - #### remove

          public void remove()

      Just implements `Iterator` but does nothing
      Specified by:
        `remove` in interface `java.util.Iterator<RemoteTaskEvent>`

    - #### close

          public void close()

      Needs only be called if the iteration is broken before reaching the FINISHED event. Otherwise it't automatically closed.

Copyright © 2014 EsprIT-Systems. All Rights Reserved.