Package org.jclouds.collect
Class IterableWithMarkers
- java.lang.Object
-
- org.jclouds.collect.IterableWithMarkers
-
@Beta public class IterableWithMarkers extends Object
Utilities for usingIterableWithMarker
s.
-
-
Field Summary
Fields Modifier and Type Field Description static IterableWithMarker
EMPTY
-
Constructor Summary
Constructors Constructor Description IterableWithMarkers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> IterableWithMarker<T>
from(Iterable<T> elements)
Returns a paginated iterable containing the given elements and null marker.static <T> IterableWithMarker<T>
from(Iterable<T> elements, Object marker)
Returns a paginated iterable containing the given elements and marker.
-
-
-
Field Detail
-
EMPTY
public static final IterableWithMarker EMPTY
-
-
Method Detail
-
from
public static <T> IterableWithMarker<T> from(Iterable<T> elements)
Returns a paginated iterable containing the given elements and null marker.- Throws:
NullPointerException
- ifelements
are null
-
from
public static <T> IterableWithMarker<T> from(Iterable<T> elements, @Nullable Object marker)
Returns a paginated iterable containing the given elements and marker.- Throws:
NullPointerException
- ifelements
are null
-
-