T
- The type of the result that the segment contains.public class ResultSegment<T> extends Object
Constructor and Description |
---|
ResultSegment(ArrayList<T> results,
Integer pageSize,
ResultContinuation token)
Reserved for internal use.
|
Modifier and Type | Method and Description |
---|---|
ResultContinuation |
getContinuationToken()
Returns the continuation token for the result segment.
|
boolean |
getHasMoreResults()
Returns a value that indicates whether there are more results available from the server.
|
boolean |
getIsPageComplete()
Returns a value that indicates whether the page has more results.
|
int |
getLength()
Returns the number of results in the segment.
|
Integer |
getPageSize()
Returns the size of the requested page.
|
int |
getRemainingPageResults()
Returns the count of remaining results needed to fulfill the requested page size.
|
ArrayList<T> |
getResults()
Returns an enumerable set of results from the service.
|
public ResultSegment(ArrayList<T> results, Integer pageSize, ResultContinuation token)
ResultSegment
class.results
- An ArrayList
object that represents the results for the segment.pageSize
- The number of elements in a page of results.token
- A ResultContinuation
object that represents the continuation token.public ResultContinuation getContinuationToken()
ResultContinuation
object that represents the continuation token.public boolean getHasMoreResults()
true
if there are more results available from the server; otherwise, false
.public boolean getIsPageComplete()
true
if the page has more results; otherwise, false
.public int getLength()
public Integer getPageSize()
public int getRemainingPageResults()
Copyright © 2018. All Rights Reserved.