public enum FieldMergeStrategy extends Enum<FieldMergeStrategy>
MappingSetMerger. Use it with MergeConfig and MappingSetMerger.create(MappingSet, MappingSet, MergeConfig).| Enum Constant and Description |
|---|
LOOSE
Match the same as
STRICT, but also match more broadly:
For continuation merges, only the deobfuscated output name of the left mapping must match the obfuscated
input name of the right mapping, ignoring the type.
For duplicate merges, only the obfuscated input name of the left mapping needs to match the obfuscated
input name of the right mapping, ignoring the type.
For more information regarding continuation and duplicate merges, see the Continuations and Duplicates
section of MappingSetMergerHandler. |
STRICT
Only match exactly.
|
| Modifier and Type | Method and Description |
|---|---|
static FieldMergeStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldMergeStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldMergeStrategy STRICT
MappingSetMergerHandler.public static final FieldMergeStrategy LOOSE
STRICT, but also match more broadly:
MappingSetMergerHandler.public static FieldMergeStrategy[] values()
for (FieldMergeStrategy c : FieldMergeStrategy.values()) System.out.println(c);
public static FieldMergeStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null