public class ContentItemsListingResponse
extends java.lang.Object
DeliveryClient.getItems(), or
DeliveryClient.getItems(List).| Modifier and Type | Class and Description |
|---|---|
static class |
ContentItemsListingResponse.ContentItemsListingResponseBuilder |
| Constructor and Description |
|---|
ContentItemsListingResponse() |
ContentItemsListingResponse(java.util.List<ContentItem> items,
java.util.Map<java.lang.String,ContentItem> linkedItems,
Pagination pagination,
StronglyTypedContentItemConverter stronglyTypedContentItemConverter) |
| Modifier and Type | Method and Description |
|---|---|
static ContentItemsListingResponse.ContentItemsListingResponseBuilder |
builder() |
protected boolean |
canEqual(java.lang.Object other) |
<T> java.util.List<T> |
castTo(java.lang.Class<T> tClass)
Returns a new instance of
List<T> by mapping fields to elements in this content item. |
boolean |
equals(java.lang.Object o) |
java.util.List<ContentItem> |
getItems()
The
ContentItems returned by this ContentItemsListingResponse. |
java.util.Map<java.lang.String,ContentItem> |
getLinkedItems()
A map of content items used in linked item and Rich text elements.
|
Pagination |
getPagination()
Information about the retrieved page.
|
StronglyTypedContentItemConverter |
getStronglyTypedContentItemConverter() |
int |
hashCode() |
java.lang.String |
toString() |
public ContentItemsListingResponse()
public ContentItemsListingResponse(java.util.List<ContentItem> items, java.util.Map<java.lang.String,ContentItem> linkedItems, Pagination pagination, StronglyTypedContentItemConverter stronglyTypedContentItemConverter)
public <T> java.util.List<T> castTo(java.lang.Class<T> tClass)
List<T> by mapping fields to elements in this content item. Element fields are
mapped by automatically CamelCasing and checking for equality, unless otherwise annotated by an
ElementMapping annotation. T must have a default constructor and have standard setter methods.T - The type of classtClass - The class which a new instance should be returned fromList<T> with data mapped from the ContentItem list in this
response.public static ContentItemsListingResponse.ContentItemsListingResponseBuilder builder()
public java.util.List<ContentItem> getItems()
ContentItems returned by this ContentItemsListingResponse.ContentItems of this ContentItemsListingResponse.public java.util.Map<java.lang.String,ContentItem> getLinkedItems()
ContentItems referenced in this response.public Pagination getPagination()
Pagination for this ContentItemsListingResponse identifying the current page.public StronglyTypedContentItemConverter getStronglyTypedContentItemConverter()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Object