org.jclouds.collect
Class IterableWithMarkers

java.lang.Object
  extended by org.jclouds.collect.IterableWithMarkers

@Beta
public class IterableWithMarkers
extends Object

Utilities for using IterableWithMarkers.

Author:
Adrian Cole, Jeremy Whitlock

Field Summary
static IterableWithMarker EMPTY
           
 
Constructor Summary
IterableWithMarkers()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final IterableWithMarker EMPTY
Constructor Detail

IterableWithMarkers

public IterableWithMarkers()
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 - if elements 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 - if elements are null


Copyright © 2009-2013 jclouds. All Rights Reserved.