|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.phoenix.report.ReportInterval
public final class ReportInterval
Enumerated type of a report interval. Instances of this class are immutable. The following report intervals are defined:
| Field Summary | |
|---|---|
static ReportInterval |
BUILD
Single builds (value: Build). |
static ReportInterval |
DAY
The ReportInterval Day. |
static ReportInterval |
MONTH
The ReportInterval Month. |
static ReportInterval |
OLD
Select old findings, not listed before. |
static String |
TYPE_NAME
The name of this type. |
static Map |
VALUE_MAP
Immutable map using the name string as key holding the ReportIntervals as values. |
static List |
VALUES
Immutable list of the ReportIntervals. |
static ReportInterval |
WEEK
The ReportInterval Week. |
| Method Summary | |
|---|---|
static ReportInterval |
fromInt(int i)
Creates a ReportInterval object from its int representation. |
static ReportInterval |
fromString(String str)
Creates a ReportInterval object from its String representation. |
int |
toInt()
Returns the int representation of this report interval. |
String |
toString()
Returns the String representation of this report interval. |
| 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 ReportInterval BUILD
public static final ReportInterval DAY
public static final ReportInterval WEEK
public static final ReportInterval MONTH
public static final ReportInterval OLD
public static final List VALUES
public static final Map VALUE_MAP
| Method Detail |
|---|
public static ReportInterval fromInt(int i)
throws ArgumentMalformedException
i - the integer representation of the report interval.
ArgumentMalformedException - If the assigned int value isn't
listed in the internal report interval table.
public static ReportInterval fromString(String str)
throws ArgumentMalformedException
str - the string representation of the
report interval.
ArgumentMalformedException - If the given str value isn't
listed in the internal report interval 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 | |||||||||