Class ClientEntitySetIterator<T extends ClientEntitySet,E extends ClientEntity>

java.lang.Object
org.apache.olingo.client.api.domain.ClientEntitySetIterator<T,E>
Type Parameters:
E - concrete ODataEntity implementation
T - concrete ODataEntitySet implementation
All Implemented Interfaces:
Iterator<E>

public class ClientEntitySetIterator<T extends ClientEntitySet,E extends ClientEntity> extends Object implements Iterator<E>
OData entity set iterator class.
Please don't forget to call the close()>/ method when not needed any more.
  • Field Details

  • Constructor Details

    • ClientEntitySetIterator

      public ClientEntitySetIterator(ODataClient odataClient, InputStream stream, ContentType contentType)
      Constructor.
      Parameters:
      odataClient - client instance getting this request
      stream - source stream.
      contentType - OData format.
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T extends ClientEntitySet>
    • next

      public E next()
      Specified by:
      next in interface Iterator<T extends ClientEntitySet>
    • remove

      public void remove()
      Unsupported operation.
      Specified by:
      remove in interface Iterator<T extends ClientEntitySet>
    • close

      public void close()
      Closes the current iterator.
    • getNext

      public URI getNext()
      Gets the next link if exists.
      Returns:
      next link if exists; null otherwise.