net.aavalla.utils.jobpool
Enum JobCategory
java.lang.Object
java.lang.Enum<JobCategory>
net.aavalla.utils.jobpool.JobCategory
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<JobCategory>
public enum JobCategory
- extends java.lang.Enum<JobCategory>
- Author:
- Lari Natri
Method Summary |
static JobCategory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static JobCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
MEMORY
public static final JobCategory MEMORY
CPU
public static final JobCategory CPU
FILESYSTEM
public static final JobCategory FILESYSTEM
DB_WRITE
public static final JobCategory DB_WRITE
DB_READ
public static final JobCategory DB_READ
USER1
public static final JobCategory USER1
USER2
public static final JobCategory USER2
USER3
public static final JobCategory USER3
USER4
public static final JobCategory USER4
USER5
public static final JobCategory USER5
USER6
public static final JobCategory USER6
USER7
public static final JobCategory USER7
USER8
public static final JobCategory USER8
USER9
public static final JobCategory USER9
values
public static JobCategory[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (JobCategory c : JobCategory.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static JobCategory valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null