Enum PostSort
- java.lang.Object
-
- java.lang.Enum<PostSort>
-
- org.sakaiproject.conversations.api.PostSort
-
- All Implemented Interfaces:
Serializable,Comparable<PostSort>
public enum PostSort extends Enum<PostSort>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASC_CREATORDESC_CREATORLEAST_ACTIVEMOST_ACTIVENEWESTOLDEST
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PostSortvalueOf(String name)Returns the enum constant of this type with the specified name.static PostSort[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEWEST
public static final PostSort NEWEST
-
OLDEST
public static final PostSort OLDEST
-
MOST_ACTIVE
public static final PostSort MOST_ACTIVE
-
LEAST_ACTIVE
public static final PostSort LEAST_ACTIVE
-
ASC_CREATOR
public static final PostSort ASC_CREATOR
-
DESC_CREATOR
public static final PostSort DESC_CREATOR
-
-
Method Detail
-
values
public static PostSort[] 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 (PostSort c : PostSort.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PostSort 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
-
-