Enum Sorting.SortBy
- java.lang.Object
-
- java.lang.Enum<Sorting.SortBy>
-
- org.exoplatform.social.core.search.Sorting.SortBy
-
- All Implemented Interfaces:
Serializable,Comparable<Sorting.SortBy>
- Enclosing class:
- Sorting
public static enum Sorting.SortBy extends Enum<Sorting.SortBy>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFieldName()static Sorting.SortByvalueOf(String name)Returns the enum constant of this type with the specified name.static Sorting.SortBy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RELEVANCY
public static final Sorting.SortBy RELEVANCY
-
DATE
public static final Sorting.SortBy DATE
-
TITLE
public static final Sorting.SortBy TITLE
-
LASTNAME
public static final Sorting.SortBy LASTNAME
-
FIRSTNAME
public static final Sorting.SortBy FIRSTNAME
-
FULLNAME
public static final Sorting.SortBy FULLNAME
-
-
Method Detail
-
values
public static Sorting.SortBy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Sorting.SortBy c : Sorting.SortBy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Sorting.SortBy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getFieldName
public String getFieldName()
-
-