public enum JobTypeEnum extends Enum<JobTypeEnum>
| Enum Constant and Description |
|---|
DAY
按天
|
HOUR |
MINUTE |
MONTH |
SECOND
按秒
|
WEEK |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getName() |
static JobTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobTypeEnum DAY
public static final JobTypeEnum WEEK
public static final JobTypeEnum MONTH
public static final JobTypeEnum SECOND
public static final JobTypeEnum MINUTE
public static final JobTypeEnum HOUR
private final int code
private final String name
public static JobTypeEnum[] values()
for (JobTypeEnum c : JobTypeEnum.values()) System.out.println(c);
public static JobTypeEnum 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 int getCode()
public String getName()
Copyright © 2024. All rights reserved.