public static enum Post.CommentStatus extends java.lang.Enum<Post.CommentStatus>
| Enum Constant and Description |
|---|
CLOSED
Comments are close.
|
OPEN
Comments are open.
|
UNKNOWN
Comment status is unknown.
|
| Modifier and Type | Method and Description |
|---|---|
static Post.CommentStatus |
fromString(java.lang.String str)
Creates comment status from a string.
|
static Post.CommentStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Post.CommentStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Post.CommentStatus OPEN
public static final Post.CommentStatus CLOSED
public static final Post.CommentStatus UNKNOWN
public static Post.CommentStatus[] values()
for (Post.CommentStatus c : Post.CommentStatus.values()) System.out.println(c);
public static Post.CommentStatus 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 nullpublic static Post.CommentStatus fromString(java.lang.String str)
str - The string.