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 Microsoft Corporation 
* 
* Licensed under the Apache License, Version 2.0 (the "License"); 
* you may not use this file except in compliance with the License. 
* You may obtain a copy of the License at 
* http://www.apache.org/licenses/LICENSE-2.0 
* 
* Unless required by applicable law or agreed to in writing, software 
* distributed under the License is distributed on an "AS IS" BASIS, 
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
* See the License for the specific language governing permissions and 
* limitations under the License. 
*/