|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.types.JiraState
public final class JiraState
Enumerated type of a jira state. Instances of this class are immutable. The following jira states are defined:
| Field Summary | |
|---|---|
static JiraState |
ACCEPTED
The JiraState Accepted. |
static JiraState |
ASSIGNED
The JiraState Assigned. |
static JiraState |
CLOSED
The JiraState Closed. |
static JiraState |
INFO_REQUESTED
The JiraState InfoRequested. |
static JiraState |
OPENED
The JiraState Opened. |
static JiraState |
POSTPONED
The JiraState Postponed. |
static JiraState |
REJECTED
The JiraState Rejected. |
static JiraState |
RESOLVED
The JiraState Resolved. |
static JiraState |
SUBMITTED
The JiraState Submitted. |
static String |
TYPE_NAME
The name of this type. |
static Map |
VALUE_MAP
Immutable map using the name string as key holding the JiraStates as values. |
static List |
VALUES
Immutable list of the JiraStates. |
| Method Summary | |
|---|---|
static JiraState |
fromInt(int i)
Creates a JiraState object from its int representation. |
static JiraState |
fromString(String str)
Creates a JiraState object from its String representation. |
int |
toInt()
Returns the int representation of this jira state. |
String |
toString()
Returns the String representation of this jira state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_NAME
public static final JiraState SUBMITTED
public static final JiraState INFO_REQUESTED
public static final JiraState POSTPONED
public static final JiraState ASSIGNED
public static final JiraState REJECTED
public static final JiraState OPENED
public static final JiraState RESOLVED
public static final JiraState ACCEPTED
public static final JiraState CLOSED
public static final List VALUES
public static final Map VALUE_MAP
| Method Detail |
|---|
public static JiraState fromInt(int i)
throws ArgumentMalformedException
i - the integer representation of the jira state.
ArgumentMalformedException - If the assigned int value isn't
listed in the internal jira state table.
public static JiraState fromString(String str)
throws ArgumentMalformedException
str - the string representation of the
jira state.
ArgumentMalformedException - If the given str value isn't
listed in the internal jira state table.public int toInt()
toInt in interface EnumTypepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||