public abstract class BaseToPagedIterable<T,O extends ListOptions> extends Arg0ToPagedIterable<T,BaseToPagedIterable<T,O>>
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.Arg0ToPagedIterable.FromCaller<T,I extends Arg0ToPagedIterable.FromCaller<T,I>>
Modifier and Type | Field and Description |
---|---|
protected DigitalOcean2Api |
api |
request
Modifier | Constructor and Description |
---|---|
protected |
BaseToPagedIterable(DigitalOcean2Api api,
com.google.common.base.Function<URI,O> linkToOptions) |
Modifier and Type | Method and Description |
---|---|
protected 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) |
markerToNextForArgs
apply, getArgs, setContext
protected final DigitalOcean2Api api
@Inject protected BaseToPagedIterable(DigitalOcean2Api api, com.google.common.base.Function<URI,O> linkToOptions)
protected 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)
markerToNextForArg0
in class Arg0ToPagedIterable<T,BaseToPagedIterable<T,O extends ListOptions>>
arg0
- present when there was an arg0Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.