Added New Utility methods.
-Added: bulk putIfAbsent & AddTo function -Added: ArrayPut method simplify adding arrays into a map. -Added: Bulk Replace function that uses a "Map" instead of a lambda -Added: Bulk Merge function
This commit is contained in:
@@ -211,6 +211,7 @@ public class GlobalVariables
|
||||
addSimpleMapper("APPLY_VALUE", valueType.isObject() ? "apply" : "applyAs"+valueType.getNonFileType());
|
||||
addSimpleMapper("APPLY_CAST", "applyAs"+type.getCustomJDKType().getNonFileType());
|
||||
addSimpleMapper("APPLY", type.isObject() ? "apply" : "applyAs"+type.getNonFileType());
|
||||
addFunctionValueMapper("BULK_MERGE", "mergeAll");
|
||||
addFunctionValueMappers("COMPUTE_IF_ABSENT", "compute%sIfAbsent");
|
||||
addFunctionValueMappers("COMPUTE_IF_PRESENT", "compute%sIfPresent");
|
||||
addFunctionValueMapper("COMPUTE", "compute");
|
||||
|
||||
Reference in New Issue
Block a user