public enum CommentState extends Enum<CommentState>
states
a comment can be in.Comment.getState()
Enum Constant and Description |
---|
OPEN
The
comment is open. |
RESOLVED
The
comment has been resolved. |
Modifier and Type | Method and Description |
---|---|
static CommentState |
fromId(int id) |
int |
getId() |
static CommentState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommentState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommentState OPEN
comment
is open.public static final CommentState RESOLVED
comment
has been resolved.public static CommentState[] values()
for (CommentState c : CommentState.values()) System.out.println(c);
public static CommentState 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 nullpublic static CommentState fromId(int id)
public int getId()
Copyright © 2019 Atlassian. All rights reserved.