T - The modelled type of the object that has been read.public class Page<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<T> |
getItems()
Returns a page of mapped objects that represent records from a database query or scan.
|
Map<String,AttributeValue> |
getLastEvaluatedKey()
Returns the 'lastEvaluatedKey' that DynamoDB returned from the last page query or scan.
|
int |
hashCode() |
static <T> Page<T> |
of(List<T> items)
Static constructor for this object that sets a null 'lastEvaluatedKey' which indicates this is the final page
of results.
|
static <T> Page<T> |
of(List<T> items,
Map<String,AttributeValue> lastEvaluatedKey)
Static constructor for this object.
|
public static <T> Page<T> of(List<T> items, Map<String,AttributeValue> lastEvaluatedKey)
T - The modelled type of the object that has been read.items - A list of items to store for the page.lastEvaluatedKey - A 'lastEvaluatedKey' to store for the page.Page object.public static <T> Page<T> of(List<T> items)
T - The modelled type of the object that has been read.items - A list of items to store for the page.Page object.public List<T> getItems()
public Map<String,AttributeValue> getLastEvaluatedKey()
Copyright © 2019. All rights reserved.