public static enum Storefront.ProductSortKeys extends java.lang.Enum<Storefront.ProductSortKeys>
| Enum Constant and Description |
|---|
BEST_SELLING
Sort by the `best_selling` value.
|
CREATED_AT
Sort by the `created_at` value.
|
ID
Sort by the `id` value.
|
PRICE
Sort by the `price` value.
|
PRODUCT_TYPE
Sort by the `product_type` value.
|
RELEVANCE
Sort by relevance to the search terms when the `query` parameter is specified on the connection.
|
TITLE
Sort by the `title` value.
|
UNKNOWN_VALUE |
UPDATED_AT
Sort by the `updated_at` value.
|
VENDOR
Sort by the `vendor` value.
|
| Modifier and Type | Method and Description |
|---|---|
static Storefront.ProductSortKeys |
fromGraphQl(java.lang.String value) |
java.lang.String |
toString() |
static Storefront.ProductSortKeys |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Storefront.ProductSortKeys[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Storefront.ProductSortKeys BEST_SELLING
public static final Storefront.ProductSortKeys CREATED_AT
public static final Storefront.ProductSortKeys ID
public static final Storefront.ProductSortKeys PRICE
public static final Storefront.ProductSortKeys PRODUCT_TYPE
public static final Storefront.ProductSortKeys RELEVANCE
public static final Storefront.ProductSortKeys TITLE
public static final Storefront.ProductSortKeys UPDATED_AT
public static final Storefront.ProductSortKeys VENDOR
public static final Storefront.ProductSortKeys UNKNOWN_VALUE
public static Storefront.ProductSortKeys[] values()
for (Storefront.ProductSortKeys c : Storefront.ProductSortKeys.values()) System.out.println(c);
public static Storefront.ProductSortKeys valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Storefront.ProductSortKeys fromGraphQl(java.lang.String value)
public java.lang.String toString()
toString in class java.lang.Enum<Storefront.ProductSortKeys>