public static enum Storefront.ProductMediaSortKeys extends java.lang.Enum<Storefront.ProductMediaSortKeys>
| Enum Constant and Description |
|---|
ID
Sort by the `id` value.
|
POSITION
Sort by the `position` value.
|
RELEVANCE
Sort by relevance to the search terms when the `query` parameter is specified on the connection.
|
UNKNOWN_VALUE |
| Modifier and Type | Method and Description |
|---|---|
static Storefront.ProductMediaSortKeys |
fromGraphQl(java.lang.String value) |
java.lang.String |
toString() |
static Storefront.ProductMediaSortKeys |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Storefront.ProductMediaSortKeys[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Storefront.ProductMediaSortKeys ID
public static final Storefront.ProductMediaSortKeys POSITION
public static final Storefront.ProductMediaSortKeys RELEVANCE
public static final Storefront.ProductMediaSortKeys UNKNOWN_VALUE
public static Storefront.ProductMediaSortKeys[] values()
for (Storefront.ProductMediaSortKeys c : Storefront.ProductMediaSortKeys.values()) System.out.println(c);
public static Storefront.ProductMediaSortKeys 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.ProductMediaSortKeys fromGraphQl(java.lang.String value)
public java.lang.String toString()
toString in class java.lang.Enum<Storefront.ProductMediaSortKeys>