T
- item typeR
- low level result typeIterable<T>
public abstract class Page<T,R> extends Object implements Iterable<T>
Modifier and Type | Method | Description |
---|---|---|
abstract boolean |
hasNextPage() |
Checks whether this page has a "next page." If this method returns
true, the next page can be retrieved by calling
next . |
Iterator<T> |
iterator() |
|
R |
lowLevelResult() |
|
abstract Page<T,R> |
nextPage() |
Retrieves the next page.
|
int |
size() |
|
String |
toString() |
forEach, spliterator
public abstract boolean hasNextPage()
next
. If it
returns false, any call to next
will be guaranteed to throw an
IllegalStateException
.public abstract Page<T,R> nextPage()
NoSuchElementException
- if there is no next pageAmazonServiceException
- on error making the remote callpublic final int size()
public final R lowLevelResult()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.