Enum ChangeDetection
- All Implemented Interfaces:
Serializable, Comparable<ChangeDetection>, java.lang.constant.Constable
Change detection strategies: to decide whether an existing target file needs to be overwritten or not.
- Since:
- 3.5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDisable change detection; always overwrite existing file.Only consider the content of the file to determine is overwrite of existing file needed.Disable change detection; never overwrite existing file.Only consider the file timestamp to determine is overwrite of existing file needed.Combine timestamp and content change detection for existing file. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeDetectionReturns the enum constant of this type with the specified name.static ChangeDetection[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TIMESTAMP
Only consider the file timestamp to determine is overwrite of existing file needed. This was default before 3.4.0. -
CONTENT
Only consider the content of the file to determine is overwrite of existing file needed. This is the default since 3.4.0. -
TIMESTAMP_AND_CONTENT
Combine timestamp and content change detection for existing file. -
ALWAYS
Disable change detection; always overwrite existing file. -
NEVER
Disable change detection; never overwrite existing file.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-