Enum MigrationProgressListener.ProgressState
- java.lang.Object
-
- java.lang.Enum<MigrationProgressListener.ProgressState>
-
- org.cryptomator.cryptofs.migration.api.MigrationProgressListener.ProgressState
-
- All Implemented Interfaces:
Serializable,Comparable<MigrationProgressListener.ProgressState>
- Enclosing interface:
- MigrationProgressListener
public static enum MigrationProgressListener.ProgressState extends Enum<MigrationProgressListener.ProgressState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FINALIZINGCleanup after success or failure is running.INITIALIZINGMigration recently started.MIGRATINGMigration is running and progress can be calculated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MigrationProgressListener.ProgressStatevalueOf(String name)Returns the enum constant of this type with the specified name.static MigrationProgressListener.ProgressState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIALIZING
public static final MigrationProgressListener.ProgressState INITIALIZING
Migration recently started. The progress can't be calculated yet.
-
MIGRATING
public static final MigrationProgressListener.ProgressState MIGRATING
Migration is running and progress can be calculated.Any long-running tasks should (if possible) happen in this state.
-
FINALIZING
public static final MigrationProgressListener.ProgressState FINALIZING
Cleanup after success or failure is running. Remaining time is in unknown.
-
-
Method Detail
-
values
public static MigrationProgressListener.ProgressState[] 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 (MigrationProgressListener.ProgressState c : MigrationProgressListener.ProgressState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MigrationProgressListener.ProgressState 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
-
-