Package com.cumulocity.sdk.client
Class PagedCollectionIterable<T,C extends BaseCollectionRepresentation<T>>
java.lang.Object
com.cumulocity.sdk.client.PagedCollectionIterable<T,C>
public class PagedCollectionIterable<T,C extends BaseCollectionRepresentation<T>>
extends Object
implements Iterable<T>, Iterator<T>
-
Constructor Summary
ConstructorsConstructorDescriptionPagedCollectionIterable(PagedCollectionResource<T, ? extends C> collectionResource, C collection) PagedCollectionIterable(PagedCollectionResource<T, ? extends C> collectionResource, C collection, int limit) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
PagedCollectionIterable
public PagedCollectionIterable(PagedCollectionResource<T, ? extends C> collectionResource, C collection) -
PagedCollectionIterable
public PagedCollectionIterable(PagedCollectionResource<T, ? extends C> collectionResource, C collection, int limit)
-
-
Method Details
-
iterator
-
hasNext
public boolean hasNext() -
reachedLimit
public boolean reachedLimit() -
next
-
remove
public void remove()
-