@Beta public class PagedIterables extends Object
PagedIterable
s.Modifier and Type | Field and Description |
---|---|
static PagedIterable |
EMPTY |
Constructor and Description |
---|
PagedIterables() |
Modifier and Type | Method and Description |
---|---|
static <T> PagedIterable<T> |
advance(IterableWithMarker<T> initial,
com.google.common.base.Function<Object,IterableWithMarker<T>> markerToNext) |
static <T> Iterator<IterableWithMarker<T>> |
advancingIterator(IterableWithMarker<T> initial,
com.google.common.base.Function<Object,IterableWithMarker<T>> markerToNext) |
static <T> PagedIterable<T> |
of(IterableWithMarker<T> only) |
public static final PagedIterable EMPTY
public static <T> PagedIterable<T> of(IterableWithMarker<T> only)
only
- the only page of datapublic static <T> PagedIterable<T> advance(IterableWithMarker<T> initial, com.google.common.base.Function<Object,IterableWithMarker<T>> markerToNext)
initial
- the initial set current datamarkerToNext
- produces the next set based on the markerpublic static <T> Iterator<IterableWithMarker<T>> advancingIterator(IterableWithMarker<T> initial, com.google.common.base.Function<Object,IterableWithMarker<T>> markerToNext)
initial
- the initial set current datamarkerToNext
- produces the next set based on the markerCopyright © 2009-2013 jclouds. All Rights Reserved.