public static enum Storefront.ProductCollectionSortKeys extends java.lang.Enum<Storefront.ProductCollectionSortKeys>
| Enum Constant and Description |
|---|
BEST_SELLING
Sort by the `best-selling` value.
|
COLLECTION_DEFAULT
Sort by the `collection-default` value.
|
CREATED
Sort by the `created` value.
|
ID
Sort by the `id` value.
|
MANUAL
Sort by the `manual` value.
|
PRICE
Sort by the `price` 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 |
| Modifier and Type | Method and Description |
|---|---|
static Storefront.ProductCollectionSortKeys |
fromGraphQl(java.lang.String value) |
java.lang.String |
toString() |
static Storefront.ProductCollectionSortKeys |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Storefront.ProductCollectionSortKeys[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Storefront.ProductCollectionSortKeys BEST_SELLING
public static final Storefront.ProductCollectionSortKeys COLLECTION_DEFAULT
public static final Storefront.ProductCollectionSortKeys CREATED
public static final Storefront.ProductCollectionSortKeys ID
public static final Storefront.ProductCollectionSortKeys MANUAL
public static final Storefront.ProductCollectionSortKeys PRICE
public static final Storefront.ProductCollectionSortKeys RELEVANCE
public static final Storefront.ProductCollectionSortKeys TITLE
public static final Storefront.ProductCollectionSortKeys UNKNOWN_VALUE
public static Storefront.ProductCollectionSortKeys[] values()
for (Storefront.ProductCollectionSortKeys c : Storefront.ProductCollectionSortKeys.values()) System.out.println(c);
public static Storefront.ProductCollectionSortKeys 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.ProductCollectionSortKeys fromGraphQl(java.lang.String value)
public java.lang.String toString()
toString in class java.lang.Enum<Storefront.ProductCollectionSortKeys>