Package org.jclouds.collect
Class PagedIterables
- java.lang.Object
-
- org.jclouds.collect.PagedIterables
-
@Beta public class PagedIterables extends Object
Utilities for usingPagedIterable
s.
-
-
Constructor Summary
Constructors Constructor Description PagedIterables()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> PagedIterable<T>
advance(IterableWithMarker<T> initial, com.google.common.base.Function<Object,IterableWithMarker<T>> markerToNext)
static <T> PagedIterable<T>
of(IterableWithMarker<T> only)
Deprecated.static <T> PagedIterable<T>
onlyPage(IterableWithMarker<T> only)
-
-
-
Method Detail
-
onlyPage
public static <T> PagedIterable<T> onlyPage(IterableWithMarker<T> only)
- Parameters:
only
- the only page of data- Returns:
- iterable with only the one page
-
of
@Deprecated public static <T> PagedIterable<T> of(IterableWithMarker<T> only)
Deprecated.- See Also:
onlyPage(IterableWithMarker)
-
advance
public static <T> PagedIterable<T> advance(IterableWithMarker<T> initial, com.google.common.base.Function<Object,IterableWithMarker<T>> markerToNext)
- Parameters:
initial
- the initial set current datamarkerToNext
- produces the next set based on the marker- Returns:
- iterable current data which continues if the user iterates beyond the first page
-
-