public class ComparableItem extends AbstractResponse<ComparableItem>
optimisticData, responseData| Constructor and Description |
|---|
ComparableItem() |
ComparableItem(com.google.gson.JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
List<ProductAttribute> |
getAttributes()
An array of product attributes that can be used to compare products
|
String |
getGraphQlTypeName() |
ProductInterface |
getProduct()
Contains details about a product in a compare list
|
ID |
getUid()
The unique ID of an item in a compare list
|
ComparableItem |
setAttributes(List<ProductAttribute> arg) |
ComparableItem |
setProduct(ProductInterface arg) |
ComparableItem |
setUid(ID arg) |
boolean |
unwrapsToObject(String key) |
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAliaspublic ComparableItem()
public ComparableItem(com.google.gson.JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic String getGraphQlTypeName()
public List<ProductAttribute> getAttributes()
public ComparableItem setAttributes(List<ProductAttribute> arg)
public ProductInterface getProduct()
public ComparableItem setProduct(ProductInterface arg)
public ID getUid()
public ComparableItem setUid(ID arg)
public boolean unwrapsToObject(String key)
unwrapsToObject in class AbstractResponse<ComparableItem>Copyright © 2022 Adobe. All rights reserved.