SortOrder Class

public final class SortOrder
extends ExpandableStringEnum<SortOrder>

Defines values for SortOrder.

Field Summary

Modifier and Type Field and Description
static final SortOrder ASC

Static value asc for SortOrder.

static final SortOrder DESC

Static value desc for SortOrder.

Constructor Summary

Constructor Description
SortOrder()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SortOrder value.

Method Summary

Modifier and Type Method and Description
static SortOrder fromString(String name)

Creates or finds a SortOrder from its string representation.

static Collection<SortOrder> values()

Gets known SortOrder values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ASC

public static final SortOrder ASC

Static value asc for SortOrder.

DESC

public static final SortOrder DESC

Static value desc for SortOrder.

Constructor Details

SortOrder

@Deprecated
public SortOrder()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SortOrder value.

Method Details

fromString

public static SortOrder fromString(String name)

Creates or finds a SortOrder from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SortOrder.

values

public static Collection<SortOrder> values()

Gets known SortOrder values.

Returns:

known SortOrder values.

Applies to