public enum PostStatus extends Enum<PostStatus>
| Enum Constant and Description |
|---|
draft |
future |
pending |
private_ |
publish |
| Modifier and Type | Method and Description |
|---|---|
static PostStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PostStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PostStatus draft
public static final PostStatus publish
public static final PostStatus pending
public static final PostStatus future
public static final PostStatus private_
public final String value
public static PostStatus[] values()
for (PostStatus c : PostStatus.values()) System.out.println(c);
public static PostStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016. All rights reserved.