public static enum JournalSystem.Mode extends Enum<JournalSystem.Mode>
JournalSystem.gainPrimacy()
and JournalSystem.losePrimacy()
methods may be used to transition between
journal modes.Enum Constant and Description |
---|
PRIMARY
In this mode, journal entries may be written.
|
STANDBY
In this mode, journal entries may not be written.
|
Modifier and Type | Method and Description |
---|---|
static JournalSystem.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JournalSystem.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JournalSystem.Mode PRIMARY
public static final JournalSystem.Mode STANDBY
public static JournalSystem.Mode[] values()
for (JournalSystem.Mode c : JournalSystem.Mode.values()) System.out.println(c);
public static JournalSystem.Mode 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 nullCopyright © 2023. All Rights Reserved.