Class PaginatedCollection<T>

java.lang.Object
com.google.common.collect.FluentIterable<T>
org.jclouds.collect.IterableWithMarker<T>
org.jclouds.packet.domain.internal.PaginatedCollection<T>
All Implemented Interfaces:
Iterable<T>

public abstract class PaginatedCollection<T> extends IterableWithMarker<T>
Base class for all collections that return paginated results.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    com.google.common.base.Optional<Object>
    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, append, append, concat, concat, concat, concat, concat, contains, copyInto, cycle, filter, filter, first, firstMatch, from, from, from, get, index, isEmpty, join, last, limit, of, of, size, skip, stream, toArray, toList, toMap, toMultiset, toSet, toSortedList, toSortedSet, toString, transform, transformAndConcat, uniqueIndex

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

  • Method Details

    • items

      public List<T> items()
    • meta

      public PaginatedCollection.Meta meta()
    • 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