org.jclouds.googlecomputeengine.domain
Class ListPage<T>

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

public class ListPage<T>
extends org.jclouds.collect.IterableWithMarker<T>

The collection returned from any listFirstPage() method.


Nested Class Summary
static class ListPage.Builder<T>
           
 
Constructor Summary
protected ListPage(Resource.Kind kind, String id, URI selfLink, String nextPageToken, Iterable<T> items)
           
 
Method Summary
static
<T> ListPage.Builder<T>
builder()
           
 boolean equals(Object obj)
          
 String getId()
           
 Resource.Kind getKind()
           
 URI getSelfLink()
           
 int hashCode()
          
 Iterator<T> iterator()
           
 com.google.common.base.Optional<Object> nextMarker()
           
protected  com.google.common.base.Objects.ToStringHelper string()
          
 ListPage.Builder<T> toBuilder()
           
 String toString()
          
 
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, toList, toMap, toSet, toSortedList, toSortedSet, transform, transformAndConcat, uniqueIndex
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListPage

@ConstructorProperties(value={"kind","id","selfLink","nextPageToken","items"})
protected ListPage(Resource.Kind kind,
                                              String id,
                                              URI selfLink,
                                              String nextPageToken,
                                              Iterable<T> items)
Method Detail

getKind

public Resource.Kind getKind()

getId

public String getId()

getSelfLink

public URI getSelfLink()

nextMarker

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

iterator

public Iterator<T> iterator()

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()


toString

public String toString()

Overrides:
toString in class com.google.common.collect.FluentIterable<T>

builder

public static <T> ListPage.Builder<T> builder()

toBuilder

public ListPage.Builder<T> toBuilder()


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