| Enum Constant and Description |
|---|
ASC
Sort in ascending order by publish time.
|
ASC_MOD
Sort in ascending order by last modified time.
|
DESC
Sort in descending order by publish time.
|
DESC_MOD
Sort in descending order by last modified time.
|
ID_ASC
Sort in ascending order of id.
|
ID_DESC
Sort in descending order of id.
|
| Modifier and Type | Method and Description |
|---|---|
static Post.Sort |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Post.Sort[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Post.Sort ASC
public static final Post.Sort DESC
public static final Post.Sort ASC_MOD
public static final Post.Sort DESC_MOD
public static final Post.Sort ID_ASC
public static final Post.Sort ID_DESC
public static Post.Sort[] values()
for (Post.Sort c : Post.Sort.values()) System.out.println(c);
public static Post.Sort 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 null