Package com.google.gerrit.server.notedb
Enum NoteDbChangeState.PrimaryStorage
- java.lang.Object
-
- java.lang.Enum<NoteDbChangeState.PrimaryStorage>
-
- com.google.gerrit.server.notedb.NoteDbChangeState.PrimaryStorage
-
- All Implemented Interfaces:
Serializable
,Comparable<NoteDbChangeState.PrimaryStorage>
- Enclosing class:
- NoteDbChangeState
public static enum NoteDbChangeState.PrimaryStorage extends Enum<NoteDbChangeState.PrimaryStorage>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NoteDbChangeState.PrimaryStorage
of(Change c)
static NoteDbChangeState.PrimaryStorage
of(NoteDbChangeState s)
static NoteDbChangeState.PrimaryStorage
valueOf(String name)
Returns the enum constant of this type with the specified name.static NoteDbChangeState.PrimaryStorage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REVIEW_DB
public static final NoteDbChangeState.PrimaryStorage REVIEW_DB
-
NOTE_DB
public static final NoteDbChangeState.PrimaryStorage NOTE_DB
-
-
Method Detail
-
values
public static NoteDbChangeState.PrimaryStorage[] 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 (NoteDbChangeState.PrimaryStorage c : NoteDbChangeState.PrimaryStorage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NoteDbChangeState.PrimaryStorage valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
of
public static NoteDbChangeState.PrimaryStorage of(Change c)
-
of
public static NoteDbChangeState.PrimaryStorage of(NoteDbChangeState s)
-
-