org.jclouds.rackspace.cloudidentity.v2_0.domain
Class PaginatedCollection<T>

java.lang.Object
  extended by com.google.common.collect.FluentIterable<T>
      extended by org.jclouds.collect.IterableWithMarker<T>
          extended by org.jclouds.rackspace.cloudidentity.v2_0.domain.PaginatedCollection<T>
All Implemented Interfaces:
Iterable<T>

@Beta
public class PaginatedCollection<T>
extends org.jclouds.collect.IterableWithMarker<T>

Base class for a paginated collection in Rackspace.

Author:
Everett Toews

Constructor Summary
protected PaginatedCollection(Iterable<T> resources, Iterable<org.jclouds.openstack.v2_0.domain.Link> links, int totalEntries)
           
 
Method Summary
 Iterable<org.jclouds.openstack.v2_0.domain.Link> getLinks()
          links that relate to this collection
 int getTotalEntries()
           
 Iterator<T> iterator()
           
 com.google.common.base.Optional<Object> nextMarker()
           
 PaginationOptions nextPaginationOptions()
           
 
Methods inherited from class com.google.common.collect.FluentIterable
allMatch, anyMatch, contains, copyInto, cycle, filter, filter, first, firstMatch, from, from, get, index, isEmpty, last, limit, size, skip, toArray, toImmutableList, toImmutableSet, toImmutableSortedSet, toList, toMap, toSet, toSortedImmutableList, toSortedList, toSortedSet, toString, transform, transformAndConcat, uniqueIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PaginatedCollection

protected PaginatedCollection(@Nullable
                              Iterable<T> resources,
                              @Nullable
                              Iterable<org.jclouds.openstack.v2_0.domain.Link> links,
                              int totalEntries)
Method Detail

iterator

public Iterator<T> iterator()

getLinks

public Iterable<org.jclouds.openstack.v2_0.domain.Link> getLinks()
links that relate to this collection


getTotalEntries

public int getTotalEntries()

nextPaginationOptions

public PaginationOptions nextPaginationOptions()

nextMarker

public com.google.common.base.Optional<Object> nextMarker()
Specified by:
nextMarker in class org.jclouds.collect.IterableWithMarker<T>


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.