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 implementationT
- 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.
Please don't forget to call the close()>/ method when not needed any more.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientEntitySetIterator
(ODataClient odataClient, InputStream stream, ContentType contentType) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
odataClient
-
cached
-
-
Constructor Details
-
ClientEntitySetIterator
public ClientEntitySetIterator(ODataClient odataClient, InputStream stream, ContentType contentType) Constructor.- Parameters:
odataClient
- client instance getting this requeststream
- source stream.contentType
- OData format.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<T extends ClientEntitySet>
-
next
- Specified by:
next
in interfaceIterator<T extends ClientEntitySet>
-
remove
public void remove()Unsupported operation.- Specified by:
remove
in interfaceIterator<T extends ClientEntitySet>
-
close
public void close()Closes the current iterator. -
getNext
Gets the next link if exists.- Returns:
- next link if exists; null otherwise.
-