Enum PostOrderBy
- java.lang.Object
-
- java.lang.Enum<PostOrderBy>
-
- org.apache.camel.component.wordpress.api.model.PostOrderBy
-
- All Implemented Interfaces:
Serializable,Comparable<PostOrderBy>
public enum PostOrderBy extends Enum<PostOrderBy>
Sort collection by object attribute.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PostOrderByvalueOf(String name)Returns the enum constant of this type with the specified name.static PostOrderBy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
author
public static final PostOrderBy author
-
date
public static final PostOrderBy date
-
id
public static final PostOrderBy id
-
include
public static final PostOrderBy include
-
modified
public static final PostOrderBy modified
-
parent
public static final PostOrderBy parent
-
relevance
public static final PostOrderBy relevance
-
slug
public static final PostOrderBy slug
-
title
public static final PostOrderBy title
-
-
Method Detail
-
values
public static PostOrderBy[] 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 (PostOrderBy c : PostOrderBy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PostOrderBy 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
-
-