ResultSegment<T> Class
- java.
lang. Object - com.
microsoft. azure. storage. ResultSegment<T>
- com.
Type Parameters
- T
The type of the result that the segment contains.
public class ResultSegment
Represents a segment of results and contains continuation and pagination information.
Constructor Summary
Constructor | Description |
---|---|
ResultSegment(final ArrayList<T> results, final Integer pageSize, final ResultContinuation token) |
Reserved for internal use. Creates an instance of the class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Result |
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. |
Constructor Details
ResultSegment
public ResultSegment(final ArrayList
Reserved for internal use. Creates an instance of the class.
Parameters:
ArrayList
object that represents the results for the segment.
Method Details
getContinuationToken
public ResultContinuation getContinuationToken()
Returns the continuation token for the result segment.
Returns:
getHasMoreResults
public boolean getHasMoreResults()
Returns a value that indicates whether there are more results available from the server.
Returns:
true
if there are more results available from the server; otherwise, false
.
getIsPageComplete
public boolean getIsPageComplete()
Returns a value that indicates whether the page has more results.
Returns:
true
if the page has more results; otherwise, false
.
getLength
public int getLength()
Returns the number of results in the segment.
Returns:
getPageSize
public Integer getPageSize()
Returns the size of the requested page.
Returns:
getRemainingPageResults
public int getRemainingPageResults()
Returns the count of remaining results needed to fulfill the requested page size.
Returns:
getResults
public ArrayList
Returns an enumerable set of results from the service.
Returns:
Applies to
Azure SDK for Java