Package com.blackbuild.klum.ast.copy
Enum Class OverwriteStrategy.Map
- All Implemented Interfaces:
Serializable,Comparable<OverwriteStrategy.Map>,Constable
- Enclosing interface:
- OverwriteStrategy
Defines the strategy for a map.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe members of the copy source are added to the target map.The map is replaced even if the copy source is empty.The map is fully replaced if the replacement is not empty.No explicit overwrite strategy is set.The members of the copy source are added to the target map.The members of the copy source are added to the target map.The map is replaced only if the target map is empty. -
Method Summary
Modifier and TypeMethodDescriptionstatic OverwriteStrategy.MapReturns the enum constant of this class with the specified name.static OverwriteStrategy.Map[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INHERIT
No explicit overwrite strategy is set. -
FULL_REPLACE
The map is fully replaced if the replacement is not empty. -
ALWAYS_REPLACE
The map is replaced even if the copy source is empty. -
SET_IF_EMPTY
The map is replaced only if the target map is empty. -
MERGE_KEYS
The members of the copy source are added to the target map. Members with the same keys are replaced. -
MERGE_VALUES
The members of the copy source are added to the target map. Members with the same keys are merged. Only valid for DSL elements. -
ADD_MISSING
The members of the copy source are added to the target map. Members with the existing keys are ignored.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-