Package com.github.ambry.named
Class Page<T>
- java.lang.Object
-
- com.github.ambry.named.Page<T>
-
- Type Parameters:
T
- the type of the elements in the page
public class Page<T> extends java.lang.Object
Represents a page of a response.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContinuationToken()
java.util.List<T>
getElements()
-
-
-
Constructor Detail
-
Page
public Page(java.lang.String continuationToken, java.util.List<T> elements)
- Parameters:
continuationToken
-null
if there are no remaining pages to read, or a string that can be used to continue to read additional pages.elements
- the elements in this response page.
-
-
Method Detail
-
getContinuationToken
public java.lang.String getContinuationToken()
- Returns:
null
if there are no remaining pages to read, or a string that can be used to continue to read additional pages.
-
getElements
public java.util.List<T> getElements()
- Returns:
- the elements in this response page.
-
-