Enum DefaultWorkingDirectoryInitializer.CopyStrategy
- java.lang.Object
-
- java.lang.Enum<DefaultWorkingDirectoryInitializer.CopyStrategy>
-
- com.github.nosan.embedded.cassandra.DefaultWorkingDirectoryInitializer.CopyStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<DefaultWorkingDirectoryInitializer.CopyStrategy>
- Enclosing class:
- DefaultWorkingDirectoryInitializer
public static enum DefaultWorkingDirectoryInitializer.CopyStrategy extends Enum<DefaultWorkingDirectoryInitializer.CopyStrategy>
Casandra files copy strategies.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REPLACE_EXISTINGReplace a destination file if it exists.SKIP_EXISTINGSkip to copy if destination file exists.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DefaultWorkingDirectoryInitializer.CopyStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static DefaultWorkingDirectoryInitializer.CopyStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPLACE_EXISTING
public static final DefaultWorkingDirectoryInitializer.CopyStrategy REPLACE_EXISTING
Replace a destination file if it exists.
-
SKIP_EXISTING
public static final DefaultWorkingDirectoryInitializer.CopyStrategy SKIP_EXISTING
Skip to copy if destination file exists.
-
-
Method Detail
-
values
public static DefaultWorkingDirectoryInitializer.CopyStrategy[] 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 (DefaultWorkingDirectoryInitializer.CopyStrategy c : DefaultWorkingDirectoryInitializer.CopyStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultWorkingDirectoryInitializer.CopyStrategy 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
-
-