org.jclouds.collect
Class ForwardingIterableWithMarker<T>

java.lang.Object
  extended by com.google.common.collect.FluentIterable<T>
      extended by org.jclouds.collect.IterableWithMarker<T>
          extended by org.jclouds.collect.ForwardingIterableWithMarker<T>
All Implemented Interfaces:
Iterable<T>

@Beta
public abstract class ForwardingIterableWithMarker<T>
extends IterableWithMarker<T>

An iterator which forwards all its method calls to another iterator. Subclasses should override one or more methods to modify the behavior of the backing iterable as desired per the decorator pattern.

Author:
Adrian Cole

Constructor Summary
protected ForwardingIterableWithMarker()
          Constructor for use by subclasses.
 
Method Summary
protected abstract  IterableWithMarker<T> delegate()
           
 Iterator<T> iterator()
           
 com.google.common.base.Optional<Object> nextMarker()
          If there is a next marker, then the set is incomplete and you should issue another command to retrieve the rest, setting the option marker to this value
 
Methods inherited from class com.google.common.collect.FluentIterable
allMatch, anyMatch, contains, cycle, filter, filter, first, firstMatch, from, from, get, isEmpty, last, limit, size, skip, toArray, toImmutableList, toImmutableSet, toImmutableSortedSet, toSortedImmutableList, toString, transform, transformAndConcat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForwardingIterableWithMarker

protected ForwardingIterableWithMarker()
Constructor for use by subclasses.

Method Detail

delegate

protected abstract IterableWithMarker<T> delegate()

iterator

public Iterator<T> iterator()

nextMarker

public com.google.common.base.Optional<Object> nextMarker()
Description copied from class: IterableWithMarker
If there is a next marker, then the set is incomplete and you should issue another command to retrieve the rest, setting the option marker to this value

Specified by:
nextMarker in class IterableWithMarker<T>
Returns:
next marker, or absent if list is complete


Copyright © 2009-2013 jclouds. All Rights Reserved.