public static enum SoftOathSettings.OathTimestepType extends Enum<SoftOathSettings.OathTimestepType>
Enum Constant and Description |
---|
HOURS
hours.
|
MINUTES
minutes.
|
NONE
if timestep is not used.
|
SECONDS
seconds.
|
Modifier and Type | Method and Description |
---|---|
int |
getType() |
boolean |
isValidTimestepSize(int stepSize) |
static SoftOathSettings.OathTimestepType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SoftOathSettings.OathTimestepType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SoftOathSettings.OathTimestepType NONE
public static final SoftOathSettings.OathTimestepType SECONDS
public static final SoftOathSettings.OathTimestepType MINUTES
public static final SoftOathSettings.OathTimestepType HOURS
public static SoftOathSettings.OathTimestepType[] values()
for (SoftOathSettings.OathTimestepType c : SoftOathSettings.OathTimestepType.values()) System.out.println(c);
public static SoftOathSettings.OathTimestepType 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 boolean isValidTimestepSize(int stepSize)
stepSize
- size of the time steppublic int getType()