Package org.jclouds.packet.functions
Class BaseToPagedIterable<T,O extends ListOptions>
java.lang.Object
org.jclouds.collect.internal.ArgsToPagedIterable<T,BaseToPagedIterable<T,O>>
org.jclouds.collect.internal.Arg0ToPagedIterable<T,BaseToPagedIterable<T,O>>
org.jclouds.packet.functions.BaseToPagedIterable<T,O>
- All Implemented Interfaces:
com.google.common.base.Function<IterableWithMarker<T>,,PagedIterable<T>> Function<IterableWithMarker<T>,,PagedIterable<T>> InvocationContext<BaseToPagedIterable<T,O>>
public abstract class BaseToPagedIterable<T,O extends ListOptions>
extends Arg0ToPagedIterable<T,BaseToPagedIterable<T,O>>
Base class to implement the functions that build the
PagedIterable. Subclasses just need to override the
fetchPageUsingOptions(ListOptions, Optional) to invoke the right API
method with the given options parameter to get the next page.-
Nested Class Summary
Nested classes/interfaces inherited from class org.jclouds.collect.internal.Arg0ToPagedIterable
Arg0ToPagedIterable.FromCaller<T,I extends Arg0ToPagedIterable.FromCaller<T, I>> -
Field Summary
FieldsFields inherited from class org.jclouds.collect.internal.ArgsToPagedIterable
request -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseToPagedIterable(PacketApi api, com.google.common.base.Function<Href, O> hrefToOptions) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IterableWithMarker<T> fetchPageUsingOptions(O options, com.google.common.base.Optional<Object> arg0) protected com.google.common.base.Function<Object, IterableWithMarker<T>> markerToNextForArg0(com.google.common.base.Optional<Object> arg0) Methods inherited from class org.jclouds.collect.internal.Arg0ToPagedIterable
markerToNextForArgsMethods inherited from class org.jclouds.collect.internal.ArgsToPagedIterable
apply, getArgs, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Function
equals
-
Field Details
-
api
-
-
Constructor Details
-
BaseToPagedIterable
-
-
Method Details
-
fetchPageUsingOptions
protected abstract IterableWithMarker<T> fetchPageUsingOptions(O options, com.google.common.base.Optional<Object> arg0) -
markerToNextForArg0
protected com.google.common.base.Function<Object,IterableWithMarker<T>> markerToNextForArg0(com.google.common.base.Optional<Object> arg0) - Specified by:
markerToNextForArg0in classArg0ToPagedIterable<T,BaseToPagedIterable<T, O extends ListOptions>> - Parameters:
arg0- present when there was an arg0
-