org.jclouds.blobstore.domain.internal
Class PageSetImpl<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<E>
              extended by java.util.LinkedHashSet<T>
                  extended by org.jclouds.blobstore.domain.internal.PageSetImpl<T>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, Set<T>, PageSet<T>

public class PageSetImpl<T>
extends LinkedHashSet<T>
implements PageSet<T>

See Also:
Serialized Form

Field Summary
protected  String marker
           
 
Constructor Summary
PageSetImpl(Iterable<? extends T> contents, String nextMarker)
           
 
Method Summary
 boolean equals(Object obj)
          
 String getNextMarker()
          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
 int hashCode()
          
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Field Detail

marker

protected final String marker
Constructor Detail

PageSetImpl

public PageSetImpl(Iterable<? extends T> contents,
                   @Nullable
                   String nextMarker)
Method Detail

getNextMarker

public String getNextMarker()
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:
getNextMarker in interface PageSet<T>
Returns:
next marker, or null if list is complete

hashCode

public int hashCode()

Specified by:
hashCode in interface Collection<T>
Specified by:
hashCode in interface Set<T>
Overrides:
hashCode in class AbstractSet<T>

equals

public boolean equals(Object obj)

Specified by:
equals in interface Collection<T>
Specified by:
equals in interface Set<T>
Overrides:
equals in class AbstractSet<T>


Copyright © 2009-2011 jclouds. All Rights Reserved.