Class PageSetImpl<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<E>
-
- java.util.LinkedHashSet<T>
-
- 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
-
-
Constructor Summary
Constructors Constructor Description PageSetImpl(Iterable<? extends T> contents, String nextMarker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 optionmarker
to this value.int
hashCode()
String
toString()
-
Methods inherited from class java.util.LinkedHashSet
spliterator
-
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
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Field Detail
-
marker
protected final String marker
-
-
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 optionmarker
to this value. Some providers like Azure have opaque markers so portable code should not rely on the actual values.- Specified by:
getNextMarker
in interfacePageSet<T>
- Returns:
- next marker, or null if list is complete
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCollection<T>
- Specified by:
hashCode
in interfaceSet<T>
- Overrides:
hashCode
in classAbstractSet<T>
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceCollection<T>
- Specified by:
equals
in interfaceSet<T>
- Overrides:
equals
in classAbstractSet<T>
-
toString
public String toString()
- Overrides:
toString
in classAbstractCollection<T>
-
-